Difference between revisions of "VN ms module fnc vehicleRespawn isAbandoned"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "]]; |p1n=" to "]] |p1n=")
(Page filling)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{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= <pre>/*
+
|d= Checks if vehicle is abandoned.
    Author: Wyqer, veteran29
 
    Date: 2019-06-22
 
  
    Description:
+
|s= [vehicle, distance, disabledCounts] call [[VN_ms_module_fnc_vehicleRespawn_isAbandoned]]
        Checks if vehicle is abandoned.
 
  
    Parameter(s):
+
|p1n= vehicle
        _vehicle        - Vehicle to check                                  [OBJECT, defaults to objNull]
+
|p1t= object
        _distance      - Distance to check                                 [NUMBER, defaults to 1000]
+
|p1d= vehicle to check
        _immobilized    - Should immobilized vehicles count as abandoned    [NUMBER, defaults to 1000]
+
|p1v=
 
 
    Returns:
 
        Is vehicle abandoned [BOOL]
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
 
 
|s= [] call [[vn_ms_module_fnc_vehicleRespawn_isAbandoned]]
 
  
|p1n=
+
|p2n= distance
|p1t=
+
|p2t= number
|p1d=
+
|p2d= distance to check
|p1v=
+
|p2v= 1000
  
|p2n=
+
|p3n= disabledCounts
|p2t=
+
|p3t= boolean
|p2d=
+
|p3d= should immobilized vehicles count as abandoned
|p2v=
+
|p3v= true
  
|r1t=
+
|r1t= boolean
|r1d=
+
|r1d= is the vehicle abandoned
  
|x1= <code>-</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
Argument(s): global
Effect(s): unknown

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;