I'm trying to make it so a certain item, "Meat" will disappear after a minute on the ground...
That's a simple one but the one i really was lookin' for is a problem i'm having with a torch spell im using.
These triggers make the LightUnit follow the Villager but I need it so when you drop the torch it just stays where it last was and then it starts following him again when he regrabs it...
Also the player can store the torch thus removing it from the game, i need a trigger that will remove the LightUnit from the game its removed from the game and then is remade when put into the game again. I can add this part to the trigger that removes and adds the torch.
That's a simple one but the one i really was lookin' for is a problem i'm having with a torch spell im using.
-
LightCreate
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Unit - Create 1 Light for Player 1 (Red) at (Position of Villager (Male 2) 0011 <gen>) facing Default building facing degrees
-
Set LightUnit = (Last created unit)
-
Custom script: call SetDayNightModels("","")
-
-
-
Light
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
(Life of Villager (Male 2) 0011 <gen>) Greater than or equal to 1.00
-
-
Actions
-
Set TempPoint = (Position of Villager (Male 2) 0011 <gen>)
-
Set TempPoint2 = (TempPoint offset by 140.00 towards (Facing of Villager (Male 2) 0011 <gen>) degrees)
-
Unit - Move LightUnit instantly to TempPoint2
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Custom script: call RemoveLocation(udg_TempPoint2)
-
-
Also the player can store the torch thus removing it from the game, i need a trigger that will remove the LightUnit from the game its removed from the game and then is remade when put into the game again. I can add this part to the trigger that removes and adds the torch.