isRemoteControlling: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - " |version1= 2.14 |branch= dev" to " |version1= 2.14") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.14 | |version1= 2.14 | ||
|arg= local | |arg= local | ||
|gr1= Remote Control | |gr1= Remote Control | ||
|descr= Returns [[true]] if the given player is remote | |descr= Returns [[true]] if the given player is remote-controlling a unit. | ||
{{Feature|important| | {{Feature|important|See also [[Remote Control Tutorial]].}} | ||
|s1= [[isRemoteControlling]] person | |s1= [[isRemoteControlling]] person | ||
Line 16: | Line 16: | ||
|r1= [[Boolean]] - [[true]] if the given player is remote controlling a unit | |r1= [[Boolean]] - [[true]] if the given player is remote controlling a unit | ||
|x1= <sqf> | |x1= <sqf> | ||
if (isRemoteControlling player) then | |||
{ | |||
hint format ["You are controlling %1", remoteControlled player]; | |||
} | |||
else | |||
{ | |||
hint "Why not remote-control something?"; | |||
}; | |||
</sqf> | |||
|seealso= [[remoteControl]] [[remoteControlled]] | |seealso= [[remoteControl]] [[remoteControlled]] | ||
}} | }} |
Latest revision as of 17:49, 5 September 2023
Description
- Description:
- Returns true if the given player is remote-controlling a unit.
- Groups:
- Remote Control
Syntax
- Syntax:
- isRemoteControlling person
- Parameters:
- person: Object - a player
- Return Value:
- Boolean - true if the given player is remote controlling a unit
Examples
- Example 1:
Additional Information
- See also:
- remoteControl remoteControlled
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