Tile - YLogic - Transform Rotation – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Minor note to highlight model space being used)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Transform_position.png]]
[[Image:Ylands_Tile_-_Transform_position.png]]
*Returns new '''position''' which is '''offset''' relative to target position and orientation.
*Returns new '''position''' which is '''offset''' relative to target position and orientation (entity model space).
*Example: offset "1 0 0" will return position one meter in front of target entity.
*Example: offset "1 0 0" will return position one meter in front of target entity.




[[Image:Ylands_Tile_-_Transform_rotation.png]]
[[Image:Ylands_Tile_-_Transform_rotation.png]]
*Returns new '''rotation''' which is '''offset''' to target entity rotation.
*Returns new '''rotation''' which is '''offset''' to target entity rotation (entity model space).
*Offset is set in '''angle''' format of '''0-360 deg'''.
*Offset is set in '''angle''' format of '''0-360 deg'''.
*Example: offset "0 180 0" will return backwards orientation from target entity.
*Example: offset "0 180 0" will return backwards orientation from target entity.

Revision as of 09:02, 4 October 2019

Ylands Tile - Transform position.png

  • Returns new position which is offset relative to target position and orientation (entity model space).
  • Example: offset "1 0 0" will return position one meter in front of target entity.


Ylands Tile - Transform rotation.png

  • Returns new rotation which is offset to target entity rotation (entity model space).
  • Offset is set in angle format of 0-360 deg.
  • Example: offset "0 180 0" will return backwards orientation from target entity.



Template:Ylands scripting navbox