BIS fnc animalSiteSpawn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
No edit summary
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Create an area that spawns animals. The animals will be created or deleted if a player is inside or outside the area's radius. Can only be used by the server. |= Description
File: fn_animalSiteSpawn.sqf
 
Description:
Spawn of animals in animal sites.
 
Parameter(s):
_this select 0: Object - Site.
_this select 1: Array - Spawned config classes.
_this select 2: Number - Animals are spawned/deleted when the player is close/far to the site than this distance (in meters).
 
Returned value:
None
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_animalSiteSpawn]]; --> |= Syntax
| [animalSite, classnamesToSpawn, radius] call BIS_fnc_animalSiteSpawn; |= Syntax


|p1= |= Parameter 1
|p1= [animalSite, classnamesToSpawn, radius]: [[Array]]|= Parameter 1
|p2= animalSite: [[Object]] - The object to create the site around.|= Parameter 2
|p3= classnamesToSpawn: [[Array]] - Animals that can be spawned.|= Parameter 3
|p4= radius: [[Number]] - The radius by which animals are created or deleted.|= Parameter 4


| |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[player, ["rabbit_f","turtle_f","hen_random_f"], 200] call BIS_fnc_animalSiteSpawn;</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 09:27, 7 December 2014


Hover & click on the images for description

Description

Description:
Create an area that spawns animals. The animals will be created or deleted if a player is inside or outside the area's radius. Can only be used by the server.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[animalSite, classnamesToSpawn, radius] call BIS_fnc_animalSiteSpawn;
Parameters:
[animalSite, classnamesToSpawn, radius]: Array
animalSite: Object - The object to create the site around.
classnamesToSpawn: Array - Animals that can be spawned.
radius: Number - The radius by which animals are created or deleted.
Return Value:
Nothing

Examples

Example 1:
[player, ["rabbit_f","turtle_f","hen_random_f"], 200] call BIS_fnc_animalSiteSpawn;

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