| 07-10-2002, 12:12 AM | #1 |
Guest | ok, i'm creating a halo map, and i need help First off, i need to know how to bind keys <mainly WASD> to move my character Second, I want the camera to lock onto the unit, following him around and always see his back Third, I want random spawn locations, how would i go by doing that? That's all i can think of right now, i'm sure there will be more |
| 07-10-2002, 12:31 AM | #2 |
Go look at blizzard's sheep dodger map. |
| 07-10-2002, 12:35 AM | #3 |
Whoa, slow down. 1. You can't directly bind the keys. You have to setup triggers to force the player to be always selecting a neutral building owned by the player (neutral to avoid build times, purchase is instant) and make four units trainable at it, whose hotkeys are WASD, and who restock really quickly (you can do this in unit editor). Then detect when the unit enters the map area, kill it, and change the direction of the the player. (The player should be continuously moving a little bit farther than his current position). 2. Create a camera at the level you want and then use the the lock camera action. 3. Place the normal starting locations wherever. Then create regions for each possible random spot they could start. Then setup a trigger to generate a random number, and work like this: if randomnumber = 1 create unit at region1 if randomnumber = 2 create unit at region 2 ..... and so on, then: pan camera to unit - position of unit(last created unit) Now incase the stuff about keybinding confused you, I've attached a very unfinished map of mine that I started that lets you select a night elf ballista (the other possible cars don't work so don't bother trying) and then hitting W to go forward. You can then hit S to stop, and then if you hit S again, you'll switch to reverse. Now you hit W and you go backward. Hit S again to stop, hit again to change back to forward, hit W again, go forward. The triggers may help you, although the turning doesn't work. |
