Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Help with AI 'Players' saving respawn loadout
Post Flair (click to view more posts with a particular flair)
Post Body

I am creating a mission where a spec ops team (2 human players with one ai player [AI as in AI enabled]) infiltrates the Altis coastline. I want the human players to keep their loadout on respawn, which is taken care of with:

player setVariable["Saved_Loadout",getUnitLoadout player];

in OnPlayerKilled.sqf and

player setUnitLoadout(player getVariable["Saved_Loadout",[]]);

in OnPlayerRespawn.sqf.

The problem I'm having is that when the AI player respawns, (Respawn is set to custom location, respawnOnStart = 0) he reverts back to the vanilla loadout. I want the custom loadout that I set for the AI player in the 3den editor to act the same way on death and respawn as the human players loadouts do. Any help is appreciated, thankyou.

Author
Account Strength
90%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,456
Link Karma
104
Comment Karma
1,352
Profile updated: 4 days ago
Posts updated: 11 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago