Tile - YLogic - Scale – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Image: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 [[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.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Scale ==


[[File:YlandsTile-334-get.png]]


[[Image:Ylands_Tile_-_Game_logic_rotation.png]]
[[File:YlandsTile-334-set.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.


<pre>get scale(): YVector3;
set scale(value: YVector3);</pre>
=== Availability ===


[[Image:Ylands_Tile_-_Game_logic_scale.png]]
[[Ylands:Tile Availability - Server|Server]]
*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''':
**[[Ylands Game logic - Environment|'''Environment''']]
**[[Ylands Game logic - Impassable barrier|'''Impassable barrier''']]
**[[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 - Trigger zone|'''Trigger Zone''']]
**[[Ylands Game logic - Water volume|'''Water Volume''']]
All others will return (0.000, 0.000, 0.000).


=Notes=
=== Description ===
*To set rotation / position / scale of [[Ylands Game logic - Trigger zone|'''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.
Allows to '''get''' / '''set''' '''size''' of target game logic.
 
=== Notes ===
 
* 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''':
* '''Environment'''
* '''Impassable barrier'''
* '''Particle Effect'''(if scalable)
* '''Particle Template'''
* '''Path'''
* '''Play Area'''
* '''Trigger Zone'''
* '''Water Volume'''
 
All the others will return (0.000, 0.000, 0.000).




Line 30: Line 38:


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.12]]

Revision as of 12:16, 12 November 2021

Scale

YlandsTile-334-get.png

YlandsTile-334-set.png

get scale(): YVector3;
set scale(value: YVector3);

Availability

Server

Description

Allows to get / set size of target game logic.

Notes

  • 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:
  • Environment
  • Impassable barrier
  • Particle Effect(if scalable)
  • Particle Template
  • Path
  • Play Area
  • Trigger Zone
  • Water Volume

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