Game logic - Player team – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
=Description=
=Description=
Defines player teams, their spawning points and amount friendly damage.
Defines player teams, their spawning points and amount of friendly damage.


=Settings=
=Properties=
*Available Roles - Set how many available roles shall the team have.
===Available Roles===
*Role - Choose a player role
*List of available player roles in the team
*Overriding Spawn Place - Choose a spawn point, which overrides the one set with the role.
**'''Role''' - Player role
*Friendly Fire - Set the friendly fire ratio for the team. 0 equals none, 1 equals 100%.
**'''Overriding Spawn Place''' - spawn point, which overrides the one set in 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.
=Notes=
*Name is the same to the game logic as to the particular role. Same name you choose appears in the starting interface.


=Events=
===Player Teams===
*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 team can have multiple player roles.
*One player role can be added to multiple player teams.
*One player role can be added to multiple player teams.
*Player team can override the role's spawn point.
*Player team can override the spawn point of role.
*Each role in the team can have different spawn point.
*Each role in the team can have different spawn points


=Player Team in Use=
=Events=
# Choose the Player Team from the game logic tab and place it.
*[[Ylands Tile - On Player Spawn|On Player Spawn]]
# Open its properties by double clicking it. Add how many available roles you wish and set their eventual overriding spawn point.
*[[Ylands Tile - On Player Respawn|On Player Respawn]]
# 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.
*[[Ylands Tile - On Player Death|On Player Death]]
*[[Ylands Tile - On Player Connected|On Player Connected]]
*[[Ylands Tile - On Player Disconnected|On Player Disconnected]]




----
----
{{Ylands scripting navbox}}
{{Ylands scripting navbox}}

Revision as of 22:10, 2 December 2018

Description

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

Properties

Available Roles

  • List of available player roles in the team
    • Role - Player role
    • Overriding Spawn Place - spawn point, which overrides the one set in the role.

Friendly Fire

  • Set the friendly fire ratio for the team. 0 equals none, 1 equals 100%.

Notes

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

Player Teams

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

Events



Template:Ylands scripting navbox