- Joined
- Oct 9, 2015
- Messages
- 721
So this is a TEXTURE changer trigger that will change a model's skin while in-game. I tested the same functiong using the "Unit enters playable map area" event and it works fine, but in this one it doesn't. What m'I missing ?
-
Untitled Trigger 001
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Linen Clothing
-
-
Then - Actions
-
Set TempPointTexture = (Position of (Triggering unit))
-
Set TempPointTexture2 = (TempPointTexture offset by 12.00 towards (Facing of (Triggering unit)) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Triggering unit)) is an ally of Player 11 (Dark Green)) Equal to True
-
-
Then - Actions
-
Destructible - Create a Human v1 at TempPointTexture facing 0.00 with scale 0.01 and variation 0
-
-
Else - Actions
-
Destructible - Create a Human v2 at TempPointTexture facing 0.00 with scale 0.01 and variation 0
-
-
-
Unit - Add Texture Changer to (Triggering unit)
-
Unit - Order (Triggering unit) to Night Elf Mountain Giant - War Club (Last created destructible)
-
Unit - Remove Texture Changer from (Triggering unit)
-
Destructible - Remove (Last created destructible)
-
Custom script: call RemoveLocation(udg_TempPointTexture)
-
Custom script: call RemoveLocation(udg_TempPointTexture2)
-
Custom script: set udg_TempPointTexture = null
-
Custom script: set udg_TempPointTexture2 = null
-
Custom script: set bj_lastCreatedDestructable = null
-
-
Else - Actions
-
-
-