Jump to content
Sign in to follow this  
Cold Evil

Remove all First Aid Kit form the mission

Recommended Posts

Hi!

Is there some way possible to remove all first aid kits from units and vehicles?

Share this post


Link to post
Share on other sites

You'll probably have to remove all items, then add back what you want.

Share this post


Link to post
Share on other sites
Hi!

Is there some way possible to remove all first aid kits from units and vehicles?

{_x removeItems "Firstaidkit";ClearItemCargo _x} foreach (allUnits + vehicles);

but this will delete all items from vehicle (Items, not weapons or magazines)

Edited by JTS_2009

Share this post


Link to post
Share on other sites

should i add that in the init.sqf?

And will it loop and remove it form ai spawning during the game also?

Share this post


Link to post
Share on other sites
should i add that in the init.sqf?

And will it loop and remove it form ai spawning during the game also?

yes. Add this to Init.sqf. This will remove first-aid kits from all existing in current time units and all items from vehicles. If you create later some vehicles, you have to write this command again to every vehicle/unit.

for example: ClearItemCargo MyTank1;

for units: unit1 removeItems "firstaidkit";

or if you create unit with init, then for example so: "Class_of_unit" createUnit [getpos player, group player, "this removeItems 'Firstaidkit'"];

Edited by JTS_2009

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  

×