Game logic - Impassable barrier – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "[[Ylands " to "[[Ylands:")
(7 intermediate revisions by 2 users not shown)
Line 2: Line 2:
*Dynamic zone which blocks player movement.
*Dynamic zone which blocks player movement.


=Properties=
= Properties =


===Enabled===
=== Enabled ===
*Whenever the barrier is active or not.
*Whenever the barrier is active or not.


===Zone shape===
=== Zone shape ===
*Shape of the Impassable barrier - box, sphere or capsule
*Shape of the Impassable barrier - box, sphere or capsule


===Radius / Dimensions===
=== Radius / Dimensions ===
*Size of the Impassable barrier boundaries.
*Size of the Impassable barrier boundaries.


===Visible===
=== Visible ===
*Whenever the Impassable barrier boundaries are visible or not.
*Whenever the Impassable barrier boundaries are visible or not.


===Color===
=== Color ===
*Color of Impassable barrier boundaries (when visible).
*Color of Impassable barrier boundaries (when visible).


===Inverted===
=== Double sided ===
*Inverted barrier block player movement from inside out.
*Double sided barriers block also player movement from inside out.
*Inverted barrier has to be '''bigger''' than '''player''', '''otherwise''' player will '''stuck'''.
*Double sided has to be '''bigger''' than '''player''', '''otherwise''' player will '''stuck'''.


=Notes=
= Notes =
*'''Enabled''' and '''Visible''' properties are '''independent''' on each other, meaning that is is possible to display even inactive barrier (e.g dynamic force field).
*'''Enabled''' and '''Visible''' properties are '''independent''' on each other, meaning that is is possible to display even inactive barrier.
 
=Related instructions=
*[[Ylands Tile - Game logic enabled|Get / Set Enabled]]
*[[Ylands Tile - Game logic position-rotation-scale|Get Position / Rotation / Scale]]
*[[Ylands Tile - Get-Set zone visible|Get / Set Zone Visibility]]
*[[Ylands Tile - Get-Set zone color|Get / Set Zone Color]]


= Related instructions =
*[[Ylands:Tile - Game logic enabled|Get / Set Enabled]]
*[[Ylands:Tile - Game logic position-rotation-scale|Get Position / Rotation / Scale]]
*[[Ylands:Tile - Get-Set zone visible|Get / Set Zone Visibility]]
*[[Ylands:Tile - Get-Set zone color|Get / Set Zone Color]]




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}


[[Category: Game Logic]]
[[Category: Game Logic]]
[[Category: Ylands 0.12]]
[[Category: Ylands 0.12]]

Revision as of 17:35, 16 November 2022

Description

  • Dynamic zone which blocks player movement.

Properties

Enabled

  • Whenever the barrier is active or not.

Zone shape

  • Shape of the Impassable barrier - box, sphere or capsule

Radius / Dimensions

  • Size of the Impassable barrier boundaries.

Visible

  • Whenever the Impassable barrier boundaries are visible or not.

Color

  • Color of Impassable barrier boundaries (when visible).

Double sided

  • Double sided barriers block also player movement from inside out.
  • Double sided has to be bigger than player, otherwise player will stuck.

Notes

  • Enabled and Visible properties are independent on each other, meaning that is is possible to display even inactive barrier.

Related instructions