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.
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.
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/armadev/com...