BIS fnc moduleLightning: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|x1= <code></code> |= " to "|x1= <code></code> |EXAMPLE1=")
m (added two examples)
Line 30: Line 30:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |EXAMPLE1=
|x1= <code>[[player]] [[addAction]]
____________________________________________________________________________________________
[
    "Eat that!",
    {
        <nowiki>[</nowiki>[[cursorTarget]],[[nil]],[[true]]<nowiki>]</nowiki> [[spawn]] [[BIS_fnc_moduleLightning]];
        [[cursorTarget]] [[setDamage]] 1;
    },
    [],
    1.5,
    [[true]],
    [[true]],
    "",
    "![[isNull]] [[cursorTarget]]"
];</code> |EXAMPLE1=
 
|x2= <code>[] [[spawn]]//Who gets hit first? ;)
{
    {
        [_x,[[nil]],[[true]]<nowiki>]</nowiki> [[spawn]] [[BIS_fnc_moduleLightning]];
        [[sleep]] [[random]] 5;
    } [[forEach]] ([[allMissionObjects]] "" [[call]] [[BIS_fnc_arrayShuffle]]);
};


| |SEEALSO=
| |SEEALSO=

Revision as of 22:37, 8 February 2020


Hover & click on the images for description

Description

Description:
/*

	Description:
	Zeus lightning strike

	Parameter(s):
	http://community.bistudio.com/wiki/Arma_3_Modules

	Returns:
	NONE
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

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