Jump to content
Sign in to follow this  
islesfan186

loadouts for aircrews?

Recommended Posts

is there a way to customize a loadout for pilot that is already spawned in an aircraft? IE starting off in a Su-25 and changing my pilots loadout to carrying a pistol instead of an AK? just curious cuz with ACE you cant take anything larger than a pistol, and if i were to get shot down, i would like to atleast have a pistol with me. any way to do it or would i have to create an empty aircraft, and then just place a pilot separate in the editor and just edit his load before going into the aircraft?

Share this post


Link to post
Share on other sites

whatever you would use to equip

create an empty aircraft, and then just place a pilot separate in the editor and just edit his load before going into the aircraft

you would place something in his init line, either a _null = this execVM "somescript.sqf"; or the addweapon code directly, instead of this or unitname in vehicle init, use this:

for pilot only:

[b](driver this)[/b] execVM "script.sqf";

OR

removeAllWeapons [b](driver this)[/b]; [b](driver this)[/b] addWeapon "bfg"; [b](driver this)[/b] addMagazine "fuck_all_seekers";

to do it for entire crew of vehicle:

[b]{[/b][b]_x[/b] execVM "script.sqf"[b]} foreach (crew (vehicle this));[/b]

OR

{removeAllWeapons [b]_x[/b]; [b]_x[/b] addWeapon "bfg"; [b]_x[/b] addMagazine "fuck_all_seekers"[b]} foreach (crew (vehicle this));[/b]

if vehicle has passengers and you only want it applied to group of the pilot or

a groupname defined by

alphaGroup = group this;

[b]{[/b][b]_x[/b] execVM "script.sqf"[b][b]} foreach (units alphaGroup);[/b]

OR

{removeAllWeapons [b]_x[/b]; [b]_x[/b] addWeapon "bfg"; [b]_x[/b] addMagazine "fuck_all_seekers"[b]} foreach (units (group (driver this)));[/b]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×