kasilopana
New Member
- Reaction score
- 1
Well hello there!
I got a problem!
How come I can't use any unit variable in the "within range" event? :O
When my peasant dies, I am creating him again 1 second after. Problem is he was initially set to "Peasant 0000", but when he dies the Peasant 0000 is removed, and I can't set it to the variable "PlayerUnit" instead of "Peasant 0000"
Its damn hard to explain - If you don't get it, tell me and I will explain furthermore
BTW a horde of footmen approaches and your goal is to avoid them and stay alive as long as possible. You got 10 lives in total. When the peasant dies the first time, I can't get him to die again, because of this :S
Excuse my english
I got a problem!
Code:
Die Potato!
Events
Unit - A unit comes within 50.00 of Peasant 0000 <gen>
Conditions
Actions
Unit - Kill PlayerUnit
Code:
start camera
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units of type Peasant) and do (Set PlayerUnit = (Picked unit))
Camera - Pan camera for Player 1 (Red) to (Position of PlayerUnit) over 0.00 seconds
How come I can't use any unit variable in the "within range" event? :O
When my peasant dies, I am creating him again 1 second after. Problem is he was initially set to "Peasant 0000", but when he dies the Peasant 0000 is removed, and I can't set it to the variable "PlayerUnit" instead of "Peasant 0000"
Its damn hard to explain - If you don't get it, tell me and I will explain furthermore
BTW a horde of footmen approaches and your goal is to avoid them and stay alive as long as possible. You got 10 lives in total. When the peasant dies the first time, I can't get him to die again, because of this :S
Excuse my english
Code: