Page MenuHomeFeedback Tracker

Need Command to Prevent Dismantling of Static Weapon
Closed, ResolvedPublic


Any chance of introducing a command to stop static weapons being dismantled? If there's already a way, please share and I'll close the ticket.


Legacy ID

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Feb 11 2014, 5:40 PM
Bohemia edited Additional Information. (Show Details)
Bohemia set Category to Scripting.
Bohemia set Reproducibility to N/A.
Bohemia set Severity to None.
Bohemia set Resolution to Fixed.
Bohemia set Legacy ID to 1544852822.May 7 2016, 5:55 PM
Bohemia edited a custom field.

All default ingameUI actions should have a flag in their conditions that mission designer can set to disable unwanted actions. It is extremely easy to add. Something along the line of how you can lock doors in houses.


Bohemia added a subscriber: Bohemia.May 7 2016, 5:55 PM
d3nn16 added a subscriber: d3nn16.May 7 2016, 5:55 PM

enableWeaponDisassembling <bool>;

To disable disassemble action locally for client. Otherwise all static weapons are borderline useless in public servers.

+1 for enableWeaponDisassembling <bool> :D

The solutions suggested here are OK if you want to enable/disable the action for everyone based on some generic conditions.

But these solutions are not OK if I want to decide whether weapon disassembly/assembly is decided on the fly when a player/AI tries to disassemble the static weapon or assemble the backpacks (eg: allow/prevent player action depending on the group he belongs to at that specific moment).

A more generic solution would be better (although more complex), since it will allow more fine control over what happens in the mission. And I think the more generic solution is to improve the already existing WeaponDisassembled/WeaponAssembled:

WeaponAssembled => the return boolean determines whether the weapon is assembled or not

WeaponDisassembled => add reference to the weapon object (so I don't need to use cursorTarget workaround which is limited to human player and cannot work with AI soldier)

WeaponDisassembled => the return boolean determines whether the weapon is disassembled or not

Wow! The implications are profound. Well done!