Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Adding Soldier to Vehicle/Weapon  (Read 668 times)

0 Members and 1 Guest are viewing this topic.

Baseheadz

  • Guest
Adding Soldier to Vehicle/Weapon
« on: 15 Jul 2003, 19:55:01 »
I'm completely new to scripting. but I do know how to do quite a bit with the editor.

I would like to know how to add a particular type of soldier to a vehicle.

So if I have a dessert hummer, I would like the driver and passenger to be in desert camo, not in the standard woodland camo.

Also, I would like to be able to assign a particular type of weapon to a soldier.

Is any of this possible? Thank you all very much in advance.

peter

  • Guest
Re:Adding Soldier to Vehicle/Weapon
« Reply #1 on: 15 Jul 2003, 20:36:25 »
1. place empty vehicle, name vehicle -> place any unit you like, put in the units init-field
driver: this moveindriver nameofvehicle
cargo: this moveincargo nameofvehicle
other possibilities (depends on vehicle) are moveingunner or moveincommander

2. remove the units weapons first:
removeallweapons this
and then add what you need, magazines first (or unit will start with empty weapon):
this addmagazine "AK47"; this addweapon "AK47"; this addweapon "binocular"

you can do all in the init-field of the unit if you like (ex. driver,binocs,AK47+3mags):
this moveindriver nameofvehicle; removeallweapons this; this addmagazine "AK47"; this addmagazine "AK47"; this addmagazine "AK47"; this addweapon "AK47"; this addweapon "Binocular"

correct spelling of weapon-names is important, thereÂ's a list somewhere in the EDITORS DEPOT ... !!! (there are a lot of good tuts too)  ;D


Baseheadz

  • Guest
Re:Adding Soldier to Vehicle/Weapon
« Reply #2 on: 15 Jul 2003, 22:05:15 »
Yo Pete, I'm going to try this out and reply and tell you if it works..thanks