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:
http://resources.bisimulations.com/wiki
Introduced in Virtual Battlespace 2 version 1.30

Click on the images for descriptions

Introduced in

Game:
Virtual Battlespace 2
Version:
1.30

Description

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

Syntax

Syntax:
[unit, duration] call fn_vbs_injury_blindness
Parameters:
unit: Object - unit to be blinded
duration: Number - seconds to be blinded for
Return Value:
Nothing
Note

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.

Examples

Example 1:
[player, 10] call fn_vbs_injury_blindness;

Additional Information

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

Notes

Notes

+ Add Note

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

Notes

Bottom Section