Horror · Gravity traps
gravityTrapRegister
FF_horror_fnc_gravityTrapRegister
alias → utils_fnc_weaponFaultApplyPREP31 lines
Description
Arms an explicit object for a single expanding gravity trap.
- Arguments
- 0: Target <OBJECT>, 1: Configuration <HASHMAP> Options: radius (50), duration (1), tolerance (5), inventory (true), killed (true), onHit ([unit, origin, target] callback; default faults both firearms).
- Returns
- Armed <BOOL>
Example
[_crate, createHashMapFromArray [["radius",50]]] call FF_horror_fnc_gravityTrapRegister
Implementation
This name calls the owning implementation with the same arguments and return value:
| Target function | Component reference |
|---|---|
utils_fnc_weaponFaultApply | utils:weaponFaultApply |
Source
- File
x\FF\addons\horror\fnc_gravityTrapRegister.sqf- Lines
- 31
- Registration
- PREP
- Exposure
- alias