Tile - YLogic - Scale – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Added details for each tile, Added Environment/Path/Particle Template/Water Volume and removed Interior/Waypoint.)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Game_logic_position.png]]
[[Image:Ylands_Tile_-_Game_logic_position.png]]
*Allows to '''get''' / '''set'''  '''position''' of target game logic.
*Allows to '''get''' / '''set'''  '''position''' of target game logic. This is especially useful when getting the location of a [[Ylands Game logic - Reference point|Reference Point]]. When using Set position, the game logic will immediately go to that position, unlike using a Position Animator.




[[Image:Ylands_Tile_-_Game_logic_rotation.png]]
[[Image:Ylands_Tile_-_Game_logic_rotation.png]]
*Allows to '''get''' / '''set'''  '''rotation''' of target game logic.
*Allows to '''get''' / '''set'''  '''rotation''' of target game logic. When using Set Rotation, the game logic will immediately go to that rotation, unlike using a Rotation Animator.




[[Image:Ylands_Tile_-_Game_logic_scale.png]]
[[Image:Ylands_Tile_-_Game_logic_scale.png]]
*Allows to '''get''' / '''set'''  '''size''' of target game logic.
*Allows to '''get''' / '''set'''  '''size''' of target game logic. If written to console or log, the output of Get Scale will be in the format (0.000,0.000,0.000). It will not differentiate curved zones, such as the difference between a sphere of radius 1 and a 2x2x2 block. It will give the number in triplicate for things like Particle Effect Scale.
*'''Supported Game Logic''':
*'''Supported Game Logic''':
**[[Ylands Game logic - Trigger zone|'''Trigger Zone''']] (dynamic)
**[[Ylands Game logic - Environment|'''Environment''']]
**[[Ylands Game logic - Impassable barrier|'''Impassable barrier''']]
**[[Ylands Game logic - Impassable barrier|'''Impassable barrier''']]
**[[Ylands Game logic - Interior|'''Interior''']]
**[[Ylands Game logic - Particle effect|'''Particle Effect''']] (if scaleable
**[[Ylands Game logic - Particle template|'''Particle Template''']]
**[[Ylands Game logic - Path|'''Path''']]
**[[Ylands Game logic - Play area|'''Play Area''']]
**[[Ylands Game logic - Play area|'''Play Area''']]
**[[Ylands Game logic - Waypoint|'''Waypoint''']] (loiter)
**[[Ylands Game logic - Trigger zone|'''Trigger Zone''']]
**[[Ylands Game logic - Particle effect|'''Particle Effect''']]
**[[Ylands Game logic - Water volume|'''Water Volume''']]
All others will return (0.000, 0.000, 0.000).


=Notes=
=Notes=
*To change rotation / position / scale of [[Ylands Game logic - Trigger zone|'''Trigger Zone''']], it has to be set to "'''dynamic'''".
*To set rotation / position / scale of [[Ylands Game logic - Trigger zone|'''Trigger Zone''']], it has to be set to "'''animated'''".
*'''Dynamic''' Trigger Zone reacts '''only''' to '''players''' (technical limitations).
*'''Animated''' Trigger Zones '''cannot''' react to '''any animal/monster, any item, any npc, any projectile, or entity type''' (technical limitations). All other trigger groups still function.





Revision as of 07:02, 13 November 2020

Ylands Tile - Game logic position.png

  • Allows to get / set position of target game logic. This is especially useful when getting the location of a Reference Point. When using Set position, the game logic will immediately go to that position, unlike using a Position Animator.


Ylands Tile - Game logic rotation.png

  • Allows to get / set rotation of target game logic. When using Set Rotation, the game logic will immediately go to that rotation, unlike using a Rotation Animator.


Ylands Tile - Game logic scale.png

All others will return (0.000, 0.000, 0.000).

Notes

  • To set rotation / position / scale of Trigger Zone, it has to be set to "animated".
  • Animated Trigger Zones cannot react to any animal/monster, any item, any npc, any projectile, or entity type (technical limitations). All other trigger groups still function.



Template:Ylands scripting navbox