CSLALUKI/Sandbox – User
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
Populate buildings in a given area with enemies. | Populate buildings in a given area with enemies. | ||
== Syntax | == Syntax == | ||
<sqf>[entity_name, max_distance, player_side_defined, is_debugging] execVM "\csla_scripts\mission\CSLA_fn_populateHouses.sqf"</sqf> | <sqf>[entity_name, max_distance, player_side_defined, is_debugging] execVM "\csla_scripts\mission\CSLA_fn_populateHouses.sqf"</sqf> | ||
Latest revision as of 23:41, 14 November 2022
Description
Populate buildings in a given area with enemies.
Syntax
[entity_name, max_distance, player_side_defined, is_debugging] execVM "\csla_scripts\mission\CSLA_fn_populateHouses.sqf"
Parameters
- entity_name: Object - this object is used as the center of the radius
- max_distance: Number - maximum distance from the entity in which buildings are filled with the enemy units
- player_side_defined: Boolean - True to set the enemy side to the opposite as the player's side, False to keep it default (FIA)
- is_debugging: Boolean - True to print debug messages during init, False to prevent displaying debug messages
Return value: Nothing
Examples
Example 1: Populate buildings in 500 meters radius around the player:
Example 2: Populate buildings in 250 meters radius around the "placedEntityInEden" object:
Example 3: Use this in the Init field of the entity to populate buildings in 250 meters radius around the object: