fn vbs injury blindness (VBS2)

From Bohemia Interactive Community
Jump to: navigation, search
VBS2 references on this site are not maintained anymore, and may be outdated!
Please use the new, dedicated VBS2 Wiki instead:
Introduced in Virtual Battlespace 2 version 1.30

Click on the images for descriptions

Introduced in

Game:</dt>
Virtual Battlespace 2</dd>
Version:</dt>
1.30</dd>

Description

Description:</dt>
Causes blindness on a given unit, for the specified number of seconds. It affects both AI and player units.</dd>

Syntax

Syntax:</dt>
[unit, duration] call fn_vbs_injury_blindness </dd>
Parameters:</dt>
unit: Object - unit to be blinded
duration: Number - seconds to be blinded for
Return Value:</dt>
Nothing </dd>
Note</dt>
As this is a function, certain limitations and requirements should be kept in mind, the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes them. More here.</dd>

Examples

Example 1:</dt>
[player, 10] call fn_vbs_injury_blindness;

Additional Information

Multiplayer:</dt>
The script should (but doesn't have to) be executed where unit is local.</dd>

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Google Ads