BIS fnc moduleLightning: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added two examples)
m (fixed closing code tag)
Line 43: Line 43:
     "",
     "",
     "![[isNull]] [[cursorTarget]]"
     "![[isNull]] [[cursorTarget]]"
];</code> |EXAMPLE1=
];</code> |EXAMPLE2=


|x2= <code>[] [[spawn]]//Who gets hit first? ;)
|x2= <code>[] [[spawn]]//Who gets hit first? ;)
Line 51: Line 51:
         [[sleep]] [[random]] 5;  
         [[sleep]] [[random]] 5;  
     } [[forEach]] ([[allMissionObjects]] "" [[call]] [[BIS_fnc_arrayShuffle]]);  
     } [[forEach]] ([[allMissionObjects]] "" [[call]] [[BIS_fnc_arrayShuffle]]);  
};
};</code>


| |SEEALSO=
| |SEEALSO=

Revision as of 23:41, 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