focusOn: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "↵|branch= dev↵↵" to " ") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.16 | |version1= 2.16 | ||
|gr1= Camera Control | |gr1= Camera Control | ||
|gr2= Remote Control | |gr2= Remote Control | ||
Line 12: | Line 10: | ||
|s1= [[focusOn]] | |s1= [[focusOn]] | ||
|r1= [[Object]] - person | |r1= [[Object]] - controlled person or [[objNull]] if no unit is controlled | ||
|x1= <sqf>private _currentlyControlledUnit = focusOn;</sqf> | |||
|x2= <sqf> | |||
if (isNull player) exitWith { /* no player */ }; | |||
if (player == focusOn) then | |||
{ | |||
hint "You are controlling your player unit"; | |||
} | |||
else | |||
{ | |||
hint "You are remote-controlling a unit"; | |||
}; | |||
</sqf> | |||
|seealso= [[switchCamera]] [[cameraView]] [[cameraEffect]] [[cameraOn]] [[remoteControl]] | |seealso= [[switchCamera]] [[cameraView]] [[cameraEffect]] [[cameraOn]] [[remoteControl]] | ||
}} | }} |
Latest revision as of 17:41, 26 March 2024
Description
- Description:
- Returns the person the camera is focused on. If you need the vehicle, see cameraOn.
- Groups:
- Camera ControlRemote Control
Syntax
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- switchCamera cameraView cameraEffect cameraOn remoteControl
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