Difference between revisions of "VN ms module fnc vehicleRespawn add"
Jump to navigation
Jump to search
vn>Unknown user m (Generated by LM_exportFunctionsToWiki.sqf) |
Lou Montana (talk | contribs) (Page filling) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
|v= 1.00 | |v= 1.00 | ||
− | | | + | |author= Wyqer, veteran29 |
+ | |||
+ | |a= global | ||
+ | |||
+ | |e= global | ||
− | | | + | |n= server |
|g1= VehicleRespawn | |g1= VehicleRespawn | ||
− | |d= | + | |d= Adds a vehicle to the VN Vehicle respawn system. |
− | + | ||
− | + | |s= [vehicle, delay, outDistance, outTime, ifDisabled, notify, initCode, name] call [[VN_ms_module_fnc_vehicleRespawn_add]] | |
+ | |||
+ | |p1n= vehicle | ||
+ | |p1t= object | ||
+ | |p1d= vehicle to respawn | ||
+ | |p1v= | ||
+ | |||
+ | |p2n= delay | ||
+ | |p2t= number | ||
+ | |p2d= respawn delay, in seconds | ||
+ | |p2v= 30 | ||
− | + | |p3n= outDistance | |
− | + | |p3t= number | |
+ | |p3d= abandon distance | ||
+ | |p3v= 1000 | ||
− | + | |p4n= outTime | |
− | + | |p4t= number | |
− | + | |p4d= abandon time, in seconds (0 = disabled) | |
− | + | |p4v= 0 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | |p5n= ifDisabled | |
− | + | |p5t= boolean | |
− | + | |p5d= respawn when vehicle is unable to move | |
− | + | |p5v= true | |
− | |s= | + | |p6n= notify |
+ | |p6t= boolean | ||
+ | |p6d= notify player of the vehicle's respawn | ||
+ | |p6v= | ||
− | | | + | |p7n= initCode |
− | | | + | |p7t= code |
− | | | + | |p7d= code to be executed upon respawn. Arguments: <code>params ["_oldVehicle", "_newVehicle"];</code> |
− | | | + | |p7v= {} |
− | | | + | |p8n= name |
− | | | + | |p8t= string |
− | | | + | |p8d= name used in respawn notification |
− | | | + | |p8v= "" |
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= function's success |
− | |x1= <code> | + | |x1= <code>[sogJeep, 10, 500, 300, true, true, {}, "The Great™ Jeep"] call [[VN_ms_module_fnc_vehicleRespawn_add]];</code> |
}} | }} |
Latest revision as of 18:22, 26 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Adds a vehicle to the VN Vehicle respawn system.
Syntax
- Syntax
- [vehicle, delay, outDistance, outTime, ifDisabled, notify, initCode, name] call VN_ms_module_fnc_vehicleRespawn_add
- Parameters
- vehicle: Object - vehicle to respawn
- delay: Number - (Optional, default
30
) respawn delay, in seconds - outDistance: Number - (Optional, default
1000
) abandon distance - outTime: Number - (Optional, default
0
) abandon time, in seconds (0 = disabled) - ifDisabled: Boolean - (Optional, default
true
) respawn when vehicle is unable to move - notify: Boolean - notify player of the vehicle's respawn
- initCode: Code - (Optional, default
{}
) code to be executed upon respawn. Arguments:params ["_oldVehicle", "_newVehicle"];
- name: String - (Optional, default
""
) name used in respawn notification - Return value
- Boolean - function's success
Examples
- Example 1
[sogJeep, 10, 500, 300, true, true, {}, "The Great™ Jeep"] call VN_ms_module_fnc_vehicleRespawn_add;