X-maul
AKA: Demtrod
- Reaction score
- 201
hi guys i'm creating an minigame, and the subject is that i want some cars to drive around, and if you get hit by a car you get hurt, i got 2 questions:
this one for spawning that cars, and then the following, for make them move around...
- 1:
Code:
cars
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Unit - Create 1 Car for Neutral Passive at (Center of Car spawn Up North up <gen>) facing 0.00 degrees
Unit - Order (Last created unit) to Move To (Center of Up Outer Road right up <gen>)
Unit - Create 1 Car for Neutral Passive at (Center of Car spawn Up east right <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Move To (Center of Up Outer Road right down <gen>)
Unit - Create 1 Car for Neutral Passive at (Center of Car spawn Up south down <gen>) facing 180.00 degrees
Unit - Order (Last created unit) to Move To (Center of Up Outer Road left down <gen>)
Unit - Create 1 Car for Neutral Passive at (Center of Car spawn Up west left <gen>) facing 90.00 degrees
Unit - Order (Last created unit) to Move To (Center of Up Outer Road left up <gen>)
Code:
Up Outer Road left up
Events
Unit - A unit enters Up Outer Road left up <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Car
Actions
Unit - Order (Triggering unit) to Move To (Center of Up Outer Road right up <gen>)
Code:
Up Outer Road right up
Events
Unit - A unit enters Up Outer Road right up <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Car
Actions
Unit - Order (Triggering unit) to Move To (Center of Up Outer Road right down <gen>)
Code:
Up Outer Road right down
Events
Unit - A unit enters Up Outer Road right down <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Car
Actions
Unit - Order (Triggering unit) to Move To (Center of Up Outer Road left down <gen>)
Code:
Up Outer Road left down
Events
Unit - A unit enters Up Outer Road left down <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Car
Actions
Unit - Order (Triggering unit) to Move To (Center of Up Outer Road left up <gen>)
- 2: