getSensorThreats: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix parameters, add example) |
||
Line 16: | Line 16: | ||
|p1= vehicle: [[Object]] - the sensors-equipped vehicle | |p1= vehicle: [[Object]] - the sensors-equipped vehicle | ||
|r1= [[Array]] of [[Array]]s - format [object, type, sensor]: | |r1= [[Array]] of [[Array]]s - format [<nowiki/>[object, type, sensor], ...]: | ||
* object: [[Object]] | * object: [[Object]] | ||
* type: [[String]], can be one of: | * type: [[String]], can be one of: | ||
Line 24: | Line 24: | ||
* sensor: [[String]], can be one of: | * sensor: [[String]], can be one of: | ||
** "ir" | ** "ir" | ||
** "laser" | ** "laser" | ||
** " | ** "missile" | ||
** " | ** "radar" ('''not''' "activeradar"/"passiveradar") | ||
** "visual" | ** "visual" | ||
|x1= <code>[[private]] _dangers = [[getSensorThreats]] [[vehicle]] [[player]];</code> | |x1= <code>[[private]] _dangers = [[getSensorThreats]] [[vehicle]] [[player]]; | ||
{{codecomment|/* | |||
returns e.g | |||
[ | |||
[164230: titan_missile_atl_fly.p3d, "missile", "visual"], | |||
[164233: titan_missile_atl_fly.p3d, "threatmissile", "radar"] | |||
] | |||
<nowiki/>*/}} | |||
</code> | |||
|seealso= [[getSensorTargets]] [[listVehicleSensors]] [[listRemoteTargets]] | |seealso= [[getSensorTargets]] [[listVehicleSensors]] [[listRemoteTargets]] | ||
}} | }} |
Revision as of 11:59, 7 June 2021
Description
- Description:
- Returns vehicle sensors' threats.
- Groups:
- Sensors
Syntax
- Syntax:
- getSensorThreats vehicle
- Parameters:
- vehicle: Object - the sensors-equipped vehicle
- Return Value:
- Array of Arrays - format [[object, type, sensor], ...]:
Examples
- Example 1:
private _dangers = getSensorThreats vehicle player; /* returns e.g [ [164230: titan_missile_atl_fly.p3d, "missile", "visual"], [164233: titan_missile_atl_fly.p3d, "threatmissile", "radar"] ] */
Additional Information
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