Jump to content
Sign in to follow this  
svarun

AI respawn with custom loadout

Recommended Posts

Hello.

 

How can I respawn the AI with the same custom loadout that was assigned to them via Arsenal in the mission editor? Right now they just respawn with the default class loadout.

 

Share this post


Link to post
Share on other sites

Use BIS_fnc_saveInventory and BIS_fnc_loadInventory

Share this post


Link to post
Share on other sites

How would the syntax for this be?

[this, ["loadout.sqf"]] call Bis_fnc_saveinventory;

this addeventhandler ["respawn", {this ["loadout.sqf"]} call bis_fnc_loadinventory];

Share this post


Link to post
Share on other sites

just read the notes in wikis BIS_fnc_loadInventory entry. there is an example that does exactly what u need.

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  

×