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.
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