AsYetUntitled / Framework

Altis Life RPG mission framework for Arma 3 originally made by @TAWTonic.
Other
247 stars 310 forks source link

Startloadout remove all items first #655

Closed ErikMast3r closed 4 years ago

ErikMast3r commented 4 years ago

Expected behaviour

Before I get every item added, my actual inventory should be cleaned. So I got just the items from the Config_Loadout. It should be easy, if you add the following to the fn_startLoadout:

removeAllWeapons player;
removeAllItems player;
removeAllAssignedItems player;
removeUniform player;
removeVest player;
removeBackpack player;
removeHeadgear player;
removeGoggles player;

Actual behaviour

For example: When I took out the rangemaster belt from the Config_Loadout, I still spawn with it, because the NPC still have it.

Steps to reproduce the behaviour

  1. Take the rangemaster belt out of the Config_Loadout.
  2. On the server press respawn.
  3. You spawn again with the rangemaster belt

RPT and/or extDB3 logs (if applicable)


Mission version: 6.0.0

Launcher version: I don't use the launcher

Game version: 1.98

Branch: master