- Joined
- Apr 5, 2008
- Messages
- 443
Okay, so I was making a map and I realized that I needed to use local variables to make the triggers work just right; so naturally I checked the tutorials section and sure enough I found how to create them and set them, but what if you wanted to create them and set them in one function? I use the GUI function Custom Script and I ended up with this trigger to be what I wanted, however it does not compile properly and I am pretty sure it has to do with the me not using the Local function correctly.
-
Camera01
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Array[1] Equal to 1
-
Then - Actions
- Custom script: local unit Entering_unit
- Custom script: set my_unit = udg_Hero()
-
Else - Actions
- Do nothing
-
If - Conditions
- Custom script: call CameraSetupApplyForPlayer( true, gg_cam_Camera_001, GetOwningPlayer (Entering_unit()) , 1.00 )
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events