- Joined
- Dec 6, 2008
- Messages
- 346
Hello,
I was searching though Hive for more details about the Local Player thing, and found just some little info about it.
Is it possible to use function "if GetLocalPlayer() == udg_Player then" for turn on/off trigger? For example:
I was searching though Hive for more details about the Local Player thing, and found just some little info about it.
Is it possible to use function "if GetLocalPlayer() == udg_Player then" for turn on/off trigger? For example:
-
open Gate06
-
Events
- Unit - A unit enters Region 111 <gen>
- Conditions
-
Actions
- Destructible - Open Gate (Horizontal) 6407 <gen>
- Set Player = (Owner of (Entering unit))
- Custom script: if GetLocalPlayer() == udg_Player then
- Trigger - Turn off (This trigger)
- Sound - Play Lever <gen>
- Custom script: endif
- Wait 5.00 seconds
- Destructible - Close Gate (Horizontal) 6407 <gen>
-
Events