INIT FIELDS
By Rob
Init fields are the units initialisation command areas where you tell the unit what to do....
These incremented little fields holds the keys to everyone's problems sometimes, they just don't realise that their troubles end with this little helper.
Init fields and triggers are the most important of all, for game editing and mission creating. Without these you wouldn't be able to call scripts from outside the game, you can make units perform some very realistic actions and tasks. At the end of this tutorial I shall put a brief list down of some action types and what they do. The reason why I wont put every single one down is because there are unlimited amounts.
The init field looks like a small box area.
This is where you shall be putting your actions.
I can't really explain much because of the ease it uses.
This will be your future wife from now on as soon as you know how to handle it properly...
Unit actions | Explanation |
this setbehaviour "safe" | Makes the unit carry his gun on back on slows down progress speed. |
this setbehaviour "careless" | Setting a unit to careless basically disables his AI (almost) |
this setbehaviour "aware" | Increases the units AI slightly so that he is more aware of his surroundings. |
this setbehaviour "combat" | Weapon free mode which turns the unit aggressive. Ready to fight. |
this setbehaviour "stealth" | Units crawl along the ground and are very stealthy. Easier way to get close to your enemy. |
this inflame true | For fires only. Lights them. |
[] exec "script.sqs" | Makes a specific unit execute a script outside the game. Can use unit names inside the [] e.g. [aP] |
this addweapon "weapname" | You can give a unit a different weapon by using this command. make sure you get rid of the previous one |
this removeweapon "weapname" | Removes the weapon that has been commanded to be removed. Mags and guns tend to be the same name |
this addmagazine "magname" | Always use this when changing weapons otherwise you wont have ammo. |
this removemagazine "magname" | You get the point. |
Very simple commands for you there. If you need to know the basic weapon names the go here.
If you want an example mission for the behaviours then click here
if you want an example mission showing fires click here
if you want an example mission of changing weapons then click here
Or you can get the entire command reference here