BIS fnc spawnEnemy: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
||
Line 33: | Line 33: | ||
| [[BIS_fnc_spawnGroup]], [[BIS_fnc_stalk]] | | [[BIS_fnc_spawnGroup]], [[BIS_fnc_stalk]] | ||
}} | }} | ||
[[Category:{{Name|tkoh}}: Functions|{{uc:spawnEnemy}}]] | [[Category:{{Name|tkoh}}: Functions|{{uc:spawnEnemy}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:spawnEnemy}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:spawnEnemy}}]] |
Revision as of 23:36, 31 January 2021
Description
- Description:
- Description needed
- Execution:
- spawn
- Problems:
- This function displays an error every time (at least in Arma 3) as it uses an undefined variable (typo line 30,
_players
) - Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- aPlayer: Object - player
- target: Object - refence object (enemies will be spawned on same direction in respect to the player)
- side: Side - side of the spawned enemies
- classes: Array of String - list of enemy classes (units will form a group together)
- maxEnemies: Number - (Optional, default 10) maximum number of enemies at once
- delay: Number - (Optional, default 30) time between spawn waves
- code: Code - (Optional, default {}) - code to execute on each unit (referenced by _this)
- Return Value:
- Return value needed
Examples
- Example 1:
[player, player, opfor, ["O_Soldier_F"]] spawn BIS_fnc_spawnEnemy;
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