BIS fnc moduleLightning: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2") |
||
Line 13: | Line 13: | ||
|p1= target: [[Object]] - Where the lightning bolt hits - '''will''' be deleted by the function! | |p1= target: [[Object]] - Where the lightning bolt hits - '''will''' be deleted by the function! | ||
|p2= nil: [[Nothing]] - | |p2= nil: [[Nothing]] - not used | ||
|p3= activate: [[Boolean]] - [[true]] to activate, [[false]] does nothing | |p3= activate: [[Boolean]] - [[true]] to activate, [[false]] does nothing |
Revision as of 15:39, 8 November 2023
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