getSensorThreats: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix parameters, add example) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|arg= local | |arg= local | ||
Line 18: | Line 16: | ||
|r1= [[Array]] of [[Array]]s - format [<nowiki/>[object, type, sensor], ...]: | |r1= [[Array]] of [[Array]]s - format [<nowiki/>[object, type, sensor], ...]: | ||
* object: [[Object]] | * object: [[Object]] | ||
* type: [[String]] | * type: [[String]] - can be one of: | ||
** "missile" | ** "missile" | ||
** "marked" | ** "marked" | ||
** "locked" | ** "locked" | ||
* sensor: [[String]] | * sensor: [[String]] - can be one of: | ||
** "ir" | ** "ir" | ||
** "laser" | ** "laser" | ||
Line 29: | Line 27: | ||
** "visual" | ** "visual" | ||
|x1= < | |x1= <sqf> | ||
private _dangers = getSensorThreats vehicle player; | |||
/* | |||
returns e.g | returns e.g | ||
[ | [ | ||
Line 36: | Line 35: | ||
[164233: titan_missile_atl_fly.p3d, "threatmissile", "radar"] | [164233: titan_missile_atl_fly.p3d, "threatmissile", "radar"] | ||
] | ] | ||
*/ | |||
</ | </sqf> | ||
|seealso= [[getSensorTargets]] [[listVehicleSensors]] [[listRemoteTargets]] | |seealso= [[getSensorTargets]] [[listVehicleSensors]] [[listRemoteTargets]] | ||
}} | }} |
Latest revision as of 18:08, 5 May 2022
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:
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