TeamChild

Description

Adds a team object in a teamplay required game, setting the number of teams, team members, team relationship, etc in the game.

Properties

        string    Name
    The custom name of this object.

        string    ClassName
    The object-type name.

        RWObject    Parent
    The parent of this object.

        int    StartSpawnRelation
    Click to select the corresponding spawn location.

        int    TeamNumber
    The maximum number of players in the team. It shall not be less than the required number to start game.

        int    TeamId     Team ID.

Functions

    RWObject.Create(classname)
    A special function, creating an instance of the specified class.

    Clone()
    Clones an object to create a copy.

    Destroy()
    Delete objects.

    GetAncestorByName(Name)
    Returns the object's first parent node with the same name.

    GetAncestorByClassName(className)
    Returns the object's first parent node of the same class.

    IsClass(ClassName)
    Judges whether it is the class the same as the given object class or not.

    IsDescendant(TarObj)
    Judges whether itself is the descendant of the target object or not.

    Equals(TarObj)
    Judges whether the target object is the same as itself or not.

    AddPlayer(PlayerId)
    Adds a given player.

    RemovePlayer(PlayerId)
    Removes a given player.

Events

    DescendantAdded(descendantobject)
    Triggered when a descendant is added.

    DescendantRemoved(descendantobject)
    Triggered when a descendant is removed.

    AncestryChanged(AncestryChanged)
    Triggered when the ancestry is changed.