set your unit to a global variable i.e. "set Variable(Variable Name) = marine", then change the action to Attach Region0001 to (Variable Name).
Its a good technique to do this as you want to be able to reference your variables generally in more then one function.
Also what I prefer to do to test where the region is at is use a pan camera action.
Such as...
Unit - Any Unit Enters (Entire map)
Local Variables -
Conditions -
Actions -
Region - Attach Region001 to (Variable Name) with offset (Point(0.0, 0.0))
Camera - Pan the camera for player (Triggering player) to (Position of (Variable Name) over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi all. I'm having an issue with this Trigger action.
I place a region on my map: Region001
I add an action to spawn a unit, I then add an action for: Attach Region001 to Last Created Unit
As far as I can figure out this should work but it doesn't. The region should follow the unit around, correct? It does not.
I am spawning units within the region every 5 seconds to test it.. the region stays where I originally placed it on the map.
Any help is much appreciated, thanks!
set your unit to a global variable i.e. "set Variable(Variable Name) = marine", then change the action to Attach Region0001 to (Variable Name). Its a good technique to do this as you want to be able to reference your variables generally in more then one function.
Also what I prefer to do to test where the region is at is use a pan camera action.
Such as... Unit - Any Unit Enters (Entire map)
Local Variables -
Conditions -
Actions - Region - Attach Region001 to (Variable Name) with offset (Point(0.0, 0.0)) Camera - Pan the camera for player (Triggering player) to (Position of (Variable Name) over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning