Modding Help DamageTeam & DamageTeamType explanation

Discussion in 'Starbound Modding' started by Arsakes, Jan 19, 2017.

  1. Arsakes

    Arsakes Phantasmal Quasar

    How should i use DamageTeam & DamageTeamType?
    What is the interaction between those two.

    There are present damageTeamTypes from like assistant, friendly, enemy,
    what entity they are refering? Friendly towards what? a player?

    And how come the aggressive flag comes into play

    How many DamageTeams there are?

    There is also something like hostileDamageTeam
  2. bk3k

    bk3k Oxygen Tank

    I believe everything is relative towards the player.

    I believe the teams are such that you don't damage(usually) those on your team.
  3. IHart

    IHart Scruffy Nerf-Herder

    based on my experience with these i believe it works like this.
    Damage teams are theoretically infinite, i have found use of 0 through 3 in default files. Arbitrary assignment.
    Types are all relative to player, entities cannot hurt other entities they share a type and team number with.

    Unsure about aggressive and hostileDamageTeam.
    There is a TeamType 'environment' which hits all friendly and assistant and no enemies.
  4. Arsakes

    Arsakes Phantasmal Quasar

    Precision is of uttermost importance here.

    Did you mean following:

    entites with
    { damageTeamType : environment, damageTeam: X }
    can hit
    {damageTeam: any Y, damageTeamType: firendly or assistant }

  5. IHart

    IHart Scruffy Nerf-Herder

    by all of my experiments yes.

Share This Page