BIS fnc moduleLightning: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (page filled)
m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>")
Line 27: Line 27:
     "Eat that!",  
     "Eat that!",  
     {
     {
         <nowiki>[</nowiki>[[cursorTarget]],[[nil]],[[true]]<nowiki>]</nowiki> [[spawn]] [[BIS_fnc_moduleLightning]];
         [<nowiki/>[[cursorTarget]],[[nil]],[[true]]<nowiki>]</nowiki> [[spawn]] [[BIS_fnc_moduleLightning]];
         [[cursorTarget]] [[setDamage]] 1;
         [[cursorTarget]] [[setDamage]] 1;
     },
     },

Revision as of 10:55, 19 March 2020

Hover & click on the images for description

Description

Description:
Zeus lightning strike.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[target, nil, activate] call BIS_fnc_moduleLightning
Parameters:
target: Object - Where the lightning bolt hits.
nil: Nothing - Not used
activate: Boolean - True to activate, false does nothing
Return Value:
Nothing

Examples

Example 1:
player addAction [ "Eat that!", { [cursorTarget,nil,true] spawn BIS_fnc_moduleLightning; cursorTarget setDamage 1; }, [], 1.5, true, true, "", "!isNull cursorTarget" ];
Example 2:
[] spawn//Who gets hit first? ;) { { [_x,nil,true] spawn BIS_fnc_moduleLightning; sleep random 5; } forEach (allMissionObjects "" call BIS_fnc_arrayShuffle); };

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section