Game logic - Player team – Ylands

From Bohemia Interactive Community
Revision as of 16:40, 7 October 2018 by Rudy.cz (talk | contribs)
Jump to navigation Jump to search

Description

Defines player teams, their spawning points and amount friendly damage.

Settings

  • Available Roles - Set how many available roles shall the team have.
  • Role - Choose a player role
  • Overriding Spawn Place - Choose a spawn point, which overrides the one set with the role.
  • Friendly Fire - Set the friendly fire ratio for the team. 0 equals none, 1 equals 100%.

NOTE: Name is the same to the game logic as to the particular role. Same name you choose appears in the starting interface.

Events

  • On Player Spawn - Triggers when player of the particular team spawns for the first time.
  • On Player Respawn - Triggers when player of the particular team respawns.
  • On Player Death - Triggers when player of the particular team dies.
  • On Player Connected - Triggers when player connects to the team.
  • On Player Discennected - Triggers when player disconnects the team.

Literals

  • Player - Refers to player triggering the event.

Combining with Player Roles

  • One team can have multiple player roles.
  • One player role can be added to multiple player teams.
  • Player team can override the role's spawn point.
  • Each role in the team can have different spawn point.

Player Team in Use

  1. Choose the Player Team from the game logic tab and place it.
  2. Open its properties by double clicking it. Add how many available roles you wish and set their eventual overriding spawn point.
  3. Open its edit script window. Add some event script tile and continue with tiles you need. In this case, when player from particular team spawns, a black smoke particle effect appears on his position.



Template:Ylands scripting navbox