• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Frogger kinda sth

Status
Not open for further replies.
Level 9
Joined
Oct 17, 2007
Messages
547
Make 2 regions Point A and Point B

Have an event creating cars for a player (example: neutral hostile) at Point A every X seconds (use a random number makes it more like the real game) and order them to move the other side

Make another trigger whenever a unit enters Point B and it belongs to neutral hostile then remove it from game.

Just repeat for all the other lines of cars
 
Last edited:
Level 9
Joined
Jan 23, 2008
Messages
321
Hey it's really ease
1. Make 2 regions (1st Should be the region where you want your car to spawn, and the 2nd to dissapear)
2. Make a simple GUI trigger *Unit - Create 1 (Car) in (Area 1st)
3. Make a trigger that should every 0.1 second pick all Units in the 1st Area and move them to the Second(very easy).
4. Make a trigger that should every 0.1 seconds remove all units from the 2nd Area
That's all if it's usefull that +1 to Reputation :)))
 
Level 9
Joined
Oct 17, 2007
Messages
547
Use "unit-issue order targetting point" it think thats what it is, dotn have WE here, make sure you use "last created unit" and put that order everytime you create a car unit.

Set a temporary location point variable to center of Point B, and order the cars to move to that point.

BTW: remember to remove loc leaks or else it could cause a problem since u're creating so many units.
 
Level 7
Joined
Oct 8, 2007
Messages
154
I made it like that
  • Unit - Create 1 Brewery Lorry- Volvo for Neutral - passive at (Center of Hiway A <gen>) facing Default orientation of building degrees
  • Unit - Order (Last created unit) to Move (Center of Hiway B <gen>)
Sorry for mistakes in translating trigger to english if there are

Lorries got burn ability so they kill themselves when they meets in "Hiway B" , and as it told its frogger kinda sth so they kill also hero if it will touch them. thanks for help guys I apprice that.
 
Last edited:
Level 9
Joined
Oct 17, 2007
Messages
547
If you're gonna be creating cars every few seconds that trigger will leak loc points, set center of region to a Location Point variable then destroy it after the order is issued.
 
Level 9
Joined
Oct 17, 2007
Messages
547
Making a location point into a variable will not effect your car's actions in anyway, it just make sure the game doesn't lag as more cars are spawn and move.
 
Status
Not open for further replies.
Top