BIS fnc moduleRespawnVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|x1= <code></code> |= " to "|x1= <code></code> |EXAMPLE1=")
m (Text replacement - "{{Feature | Informative | " to "{{Feature|informative|")
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |Game name=
|gr1= Modules


|1.00|Game version=
|gr2= Broken Functions
____________________________________________________________________________________________


| <pre>/*
|descr= <pre>/*


Description:
Description:
Line 36: Line 36:
Returns:
Returns:
BOOL
BOOL
*/
*/</pre>
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_moduleRespawnVehicle]]; --> |SYNTAX=
{{Feature|informative|Respawned abandoned vehicles do not reduce respawn tickets}}


|p1= |PARAMETER1=
{{Wiki|placeholder}}


| |RETURNVALUE=
|s1= <!-- [] call [[BIS_fnc_moduleRespawnVehicle]] -->
____________________________________________________________________________________________


|x1= <code></code> |EXAMPLE1=
|r1=
____________________________________________________________________________________________


| |SEEALSO=
|x1= <!-- <sqf>[] call BIS_fnc_moduleRespawnVehicle;</sqf> -->


|seealso=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Multiplayer|{{uc:moduleRespawnVehicle}}]]
[[Category:Functions|{{uc:moduleRespawnVehicle}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:moduleRespawnVehicle}}]]

Latest revision as of 21:42, 16 May 2024

Hover & click on the images for description

Description

Description:
/*

	Description:
	Set vehicle respawn, compatible both with SP and MP.

	Parameter(s):
		0: OBJECT - vehicle
		1:
			NUMBER - respawn delay in seconds (default is 0)
			BOOL - true to remove vehicle respawn (further params are ignored), false to check if the vehicle is marked for respawn
		2: NUMBER - how long until the vehicle is automatically respawned after its crew leaves it (default is -1, i.e., disabled)
		3: NUMBER - number of time the vehicle can be respawned (default is -1, i.e., unlimited)
		4: CODE - code executed upon respawn. Passed arguments are [<newVehicle>,<oldVehicle>]. The old vehicle is deleted only after this code is completed.
		5: POSITION - type of respawn position:
			0 = where it started
			1 = where it was destroyed
			2 = on vehicle's side respawn marker (e.g., "respawn_vehicle_west")
			3 = on BLUFOR respawn marker
			4 = on OPFOR respawn marker
			5 = on Independent respawn marker
			6 = on Civilian respawn marker
			7 = on side respawn marker of unit which destroyed the vehicle
		6: NUMBER - position selection type (0 = random, 1 = newest, 2 = oldest)
		7: NUMBER - type of old vehicle deletion (0 = don't delete, 1 = delete, 2 = delete with an explosion effect)
		8: BOOL - true to show notifcation when the vehicle is respawned

	Returns:
	BOOL
*/
Respawned abandoned vehicles do not reduce respawn tickets
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
ModulesBroken Functions

Syntax

Syntax:
Syntax needed
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