Quote: --- Original message by: Dark Neon
Anyway then another question like Ive seen a few maps where elites can drive vehicles they normally cant like man hog turrets and stuff Im wondering how can u like make it so that they can drive different vehicles. I want one to drive around in a Scarab. Is it possible?
It is possible, however it is long and complicated. Let me explain:
First off, if you want the Elite to drive a vehicle it does not have animations for, such as a hog, you need it to have animations. The original Elites only have anims for Ghosts, Banshees and Turrets. You can get new anims here:
http://hce.halomaps.org/index.cfm?fid=3739After installing these, go to your Elite actor variant tag, and reach the part where it says 'biped'. Chnage the biped from 'characters\elite\elite' to 'characters\elite_mp\elite_mp_special', which is the newly animated Elite.
You would want to mod your hog so the Elite can drive it. This is explained here:
http://hce.halomaps.org/index.cfm?fid=2298Modify whichever other .vehicle to your liking as well.
Next, you would want the Elite to get inside the vehicle after spawning it. There are main 2 ways. The first is the command list method, and the second is vehicle_load_magic. There are other methods, however these 2 are the easiest.
Personally I like vehicle_load_magic. I made a tutorial on this sometime back. You'll need to know how to script first. Look at my 'further reading' list below to find out tutorials.
Quote: Of course, you want your dropship to drop off enemies/allies, so you should
use a handy command called vehicle_load_magic
First off, you need a named vehicle and an AI squad that you want to get
inside the vehicle (this works for any vehicle). Then, type in this for your script
sythax:
(vehicle_load_magic (ai_actors
/))
Note that every vehicle has its own unique seat label for every seat, and you
have to check those in Guerilla.
For example, if my AI encounter name was ‘fliers’ and squad name was
‘shee’, and I wanted the AI in the squad ‘shee’ to get into a Banshee driver seat.
Name your banshee, ‘shee’.
(vehicle_load_magic flier B-driver (ai_actors fliers/shee))
…..as the seat label is B-driver
To get the ppl out of the vehicle, use the vehicle_unload command.
- From my tutorial.
Debug the AI's behaviour and actions. Check if it moves correctly. If it dosen't, go back to the .vehicle tag and modify it to your liking. It takes a lot of trial and error to create a good scarab AI.
Further Reading:
http://forum.halomaps.org/index.cfm%3Fpage=topic&topicID=22698 - Driving vehicles on command lists.
http://hce.halomaps.org/index.cfm?fid=2879 - Getting a script to work.
http://hce.halomaps.org/index.cfm?fid=4315 - My tutorial
http://hce.halomaps.org/index.cfm?fid=2809 - More scripting commands. Some can be used for AI as well.