Difference between revisions of "VN ms module fnc vehicleRespawn isAbandoned"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function" to "Category:TODO {{Function") |
Lou Montana (talk | contribs) (Page filling) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 6: | Line 5: | ||
|author= Wyqer, veteran29 | |author= Wyqer, veteran29 | ||
− | |a= | + | |a= global |
|e= | |e= | ||
Line 12: | Line 11: | ||
|g1= VehicleRespawn | |g1= VehicleRespawn | ||
− | |d= | + | |d= Checks if vehicle is abandoned. |
− | |||
− | |||
− | + | |s= [vehicle, distance, disabledCounts] call [[VN_ms_module_fnc_vehicleRespawn_isAbandoned]] | |
− | |||
− | + | |p1n= vehicle | |
− | + | |p1t= object | |
− | + | |p1d= vehicle to check | |
− | + | |p1v= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | + | |p2n= distance |
− | | | + | |p2t= number |
− | | | + | |p2d= distance to check |
− | | | + | |p2v= 1000 |
− | | | + | |p3n= disabledCounts |
− | | | + | |p3t= boolean |
− | | | + | |p3d= should immobilized vehicles count as abandoned |
− | | | + | |p3v= true |
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= is the vehicle abandoned |
− | |x1= <code> | + | |x1= <code>[sogJeep, 500, true] call [[VN_ms_module_fnc_vehicleRespawn_isAbandoned]];</code> |
}} | }} |
Latest revision as of 19:45, 26 February 2021
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Checks if vehicle is abandoned.
Syntax
- Syntax
- [vehicle, distance, disabledCounts] call VN_ms_module_fnc_vehicleRespawn_isAbandoned
- Parameters
- vehicle: Object - vehicle to check
- distance: Number - (Optional, default
1000
) distance to check - disabledCounts: Boolean - (Optional, default
true
) should immobilized vehicles count as abandoned - Return value
- Boolean - is the vehicle abandoned
Examples
- Example 1
[sogJeep, 500, true] call VN_ms_module_fnc_vehicleRespawn_isAbandoned;