fn vbs injury deafness (VBS2)
From Bohemia Interactive Community
VBS2 references on this site are not maintained anymore, and may be outdated!
Please use the new, dedicated VBS2 Wiki instead:
Click on the images for descriptions
Introduced in
- Game:</dt>
- Virtual Battlespace 2</dd>
- Version:</dt>
- 1.30</dd>
Description
- Description:</dt>
- Causes deafness on a given unit, for the specified number of seconds. It currently has no effect on AI units; only players.</dd>
Syntax
- Syntax:</dt>
- [unit, duration, <tinnitus?>] call fn_vbs_injury_deafness </dd>
- Parameters:</dt>
- unit: Object - unit to be deafened
- duration: Number - seconds to be deafened for
- duration: Boolean - optional. Should an ear-ringing sound be played? (note, only a maximum of 30 seconds of ringing is available)
- duration: Number - seconds to be deafened for
- Return Value:</dt>
- Nothing </dd>
Examples
- Example 1:</dt>
[player, 10] call fn_vbs_injury_deafness;
Additional Information
- Multiplayer:</dt>
- The script should (but doesn't have to) be executed where unit is local.</dd>