focusOn: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add example) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 12: | Line 12: | ||
|s1= [[focusOn]] | |s1= [[focusOn]] | ||
|r1= [[Object]] - person | |r1= [[Object]] - controlled person or [[objNull]] if no unit is controlled | ||
|x1= <sqf>private _currentlyControlledUnit = focusOn;</sqf> | |x1= <sqf>private _currentlyControlledUnit = focusOn;</sqf> | ||
Line 18: | Line 18: | ||
|x2= <sqf> | |x2= <sqf> | ||
if (isNull player) exitWith { /* no player */ }; | if (isNull player) exitWith { /* no player */ }; | ||
if (player == focusOn) then | if (player == focusOn) then | ||
{ | { | ||
hint "You are controlling your player unit"; | |||
} | } | ||
else | else | ||
{ | { | ||
hint "You are remote-controlling a unit"; | |||
}; | }; | ||
</sqf> | </sqf> |
Revision as of 18:08, 5 September 2023
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