BIS fnc EXP camp guidedProjectile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.62
|1.62


|gr1= Campaign
|gr1= Campaign
Line 9: Line 8:
|serverExec= server
|serverExec= server


<!---|arg= local |Multiplayer Arguments=--->
|descr= <pre>/*
 
<!---|eff= local |Multiplayer Effects=--->
 
| <pre>/*
Author: Nelson Duarte
Author: Nelson Duarte


Line 33: Line 28:
Returns:
Returns:
NOTHING
NOTHING
*/</pre>{{placeholder}}<!-- Remove this after fill-in -->
*/</pre>{{Wiki|placeholder}}<!-- Remove this after fill-in -->


|[] call [[BIS_fnc_EXP_camp_guidedProjectile]]
|s1= [] call [[BIS_fnc_EXP_camp_guidedProjectile]]


|p1= parameter: Datatype - (Optional, default defValue) description
|p1=  


|Datatype - description
|r1=


|x1=
|x1=


|exec= call
|seealso=
}}
}}

Latest revision as of 22:47, 13 June 2021

Hover & click on the images for description

Description

Description:
/*
	Author: Nelson Duarte

	Description:
	Spawns object of given class and makes it travel, hooming towards the target
	To be used with CfgAmmo type of entity, but can be used with virtually any kind of object

	Parameters:
		_startPos: 		ARRAY 			The initial position of the projectile (ASL)
		_class: 		STRING or OBJECT	The class name of the object to spawn or an object entity already existing
		_target:		OBJECT			The target object the projectile will be hooming towards to
		_speed:			SCALAR			The speed the object should assume
		_destroyTarget:		BOOL			Whether to force destruction of the target object on detonation
		_localOffset:		ARRAY			The model space position offset that projectile should be hooming towards to
		_minDistanceToTarget:	SCALAR			The minimal distance projectile needs to be from target position to enter ballistic mode
		_function		STRING			The function to execute on the created object with params [<object>]
		_isGlobalFunction	BOOL			Whether the executed function should be executed on all connected machine, false to execute only on the server

	Returns:
		NOTHING
*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
Campaign

Syntax

Syntax:
[] call BIS_fnc_EXP_camp_guidedProjectile
Return Value:
Return value needed

Examples

Examples:
Example needed

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