- Joined
- Jul 9, 2012
- Messages
- 159
if GetLocalPlayer() == udg_Player then - SOLVED
Hi
I want to create a spell which puts a targeted unit into a shadow realm for several seconds and causes units (creatures of the void) to spawn and attack him
By learning about if "GetLocalPlayer() == udg_Player then" I was able to create a nice effect for the transferred target while he is in the shadow-dimension.
But is it possible to hide all units for a single player with the custom script?
I have made a trigger, but it doesn't work
Thanks
Hi
I want to create a spell which puts a targeted unit into a shadow realm for several seconds and causes units (creatures of the void) to spawn and attack him
By learning about if "GetLocalPlayer() == udg_Player then" I was able to create a nice effect for the transferred target while he is in the shadow-dimension.
But is it possible to hide all units for a single player with the custom script?
I have made a trigger, but it doesn't work
-
Creatures of the Void Attack
-

Events
-

Conditions
-

Actions
-


Set PlayerDarkGreen = Player 11 (Dark Green)
-


Custom script: if GetLocalPlayer() == udg_PlayerDarkGreen then
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching unit)) Not equal to Player 11 (Dark Green))) and do (Actions)
-



Loop - Actions
-




Unit - Hide (Picked unit)
-
-
-


Unit - Unhide TouchOfTheShadowRealmTarget
-


Custom script: endif
-
-
Thanks
Last edited:



