eyeDirection: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (example) |
||
Line 17: | Line 17: | ||
|x1= <code> | |x1= <code>can = "Land_Can_V3_F" [[createVehicle]] [[position]] [[player]]; | ||
[[onEachFrame]] { | |||
can [[setPosASL]] [ | |||
([[eyePos]] [[player]] [[select]] 0) + ([[eyeDirection]] [[player]] [[select]] 0), | |||
([[eyePos]] [[player]] [[select]] 1) + ([[eyeDirection]] [[player]] [[select]] 1), | |||
([[eyePos]] [[player]] [[select]] 2) + ([[eyeDirection]] [[player]] [[select]] 2) | |||
] | |||
} | |||
</code>|= EXAMPLE1 | </code>|= EXAMPLE1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[positionCameraToWorld]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 20:03, 26 May 2014
Description
- Description:
- Returns the direction object is watching (eyes, or a vehicle primary observer).
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
can = "Land_Can_V3_F" createVehicle position player; onEachFrame { can setPosASL [ (eyePos player select 0) + (eyeDirection player select 0), (eyePos player select 1) + (eyeDirection player select 1), (eyePos player select 2) + (eyeDirection player select 2) ] }
Additional Information
- See also:
- positionCameraToWorld
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