BIS fnc moduleLightning: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed closing code tag)
m (page filled)
Line 1: Line 1:
{{Function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________


| arma3 |Game name=
|version1= 1.16


|1.00|Game version=
<!--|serverExec= server-->
____________________________________________________________________________________________


| <pre>/*
<!--|arg= local-->


Description:
<!--|eff= local-->
Zeus lightning strike


Parameter(s):
|descr= Zeus lightning strike.
http://community.bistudio.com/wiki/Arma_3_Modules


Returns:
|s1= [target, nil, activate] call [[BIS_fnc_moduleLightning]]
NONE
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
|p1= target: [[Object]] - Where the lightning bolt hits.
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_moduleLightning]]; --> |SYNTAX=
|p2= nil: [[Nothing]] - Not used


|p1= |PARAMETER1=
|p3= activate: [[Boolean]] - [[True]] to activate, [[false]] does nothing


| |RETURNVALUE=
|r1= [[Nothing]]
____________________________________________________________________________________________


|x1= <code>[[player]] [[addAction]]  
|x1= <code>[[player]] [[addAction]]  
Line 43: Line 36:
     "",
     "",
     "![[isNull]] [[cursorTarget]]"
     "![[isNull]] [[cursorTarget]]"
];</code> |EXAMPLE2=
];</code>


|x2= <code>[] [[spawn]]//Who gets hit first? ;)
|x2= <code>[] [[spawn]]//Who gets hit first? ;)
Line 53: Line 46:
};</code>
};</code>


| |SEEALSO=
|exec= call
 
|seealso=


}}
}}
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">

Revision as of 11:27, 9 February 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