BIS fnc moduleLightning: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>") |
||
Line 19: | Line 19: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>player addAction | ||
[ | [ | ||
"Eat that!", | "Eat that!", | ||
Line 33: | Line 33: | ||
"", | "", | ||
"!isNull cursorTarget" | "!isNull cursorTarget" | ||
];</ | ];</sqf> | ||
|x2= < | |x2= <sqf>[] spawn // Who gets hit first? ;-) | ||
{ | { | ||
{ | { | ||
Line 42: | Line 42: | ||
sleep (1 + random 4); | sleep (1 + random 4); | ||
} forEach (allPlayers call BIS_fnc_arrayShuffle); | } forEach (allPlayers call BIS_fnc_arrayShuffle); | ||
};</ | };</sqf> | ||
|seealso= [[Arma 3 Zeus]] | |seealso= [[Arma 3 Zeus]] | ||
}} | }} |
Revision as of 17:11, 13 July 2022
Description
Syntax
- Syntax:
- [target, nil, activate] call BIS_fnc_moduleLightning
- Parameters:
- target: Object - Where the lightning bolt hits - will be deleted by the function!
- nil: Nothing - Not used
- activate: Boolean - true to activate, false does nothing
- Return Value:
- Nothing
Examples
- Example 1:
- player addAction [ "Eat that!", { private _tempTarget = createSimpleObject ["Land_HelipadEmpty_F", getPosASL cursorTarget]; [_tempTarget, nil, true] spawn BIS_fnc_moduleLightning; cursorTarget setDamage 1; }, [], 1.5, true, true, "", "!isNull cursorTarget" ];
- Example 2:
Additional Information
- See also:
- Arma 3 Zeus
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