Team Member – Talk
HeliJunkie (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<code>" to "<code style="display: block">") |
||
Line 5: | Line 5: | ||
For a test, I used this code | For a test, I used this code | ||
<code>MyTeam = createTeam ["USMC_Team","Razor Three"]; | <code style="display: block">MyTeam = createTeam ["USMC_Team","Razor Three"]; | ||
hint format["TypeName: %1\nTeamName: %2\nTeamtype: %3",typename MyTeam, TeamName MyTeam, TeamType MyTeam]; | hint format["TypeName: %1\nTeamName: %2\nTeamtype: %3",typename MyTeam, TeamName MyTeam, TeamType MyTeam]; | ||
</code> | </code> | ||
Output: | Output: | ||
<code>TypeName: TEAM_MEMBER | <code style="display: block">TypeName: TEAM_MEMBER | ||
TeamName: Razor Three | TeamName: Razor Three | ||
TeamType: USMC_Team | TeamType: USMC_Team |
Latest revision as of 11:53, 11 January 2023
For creating a variable Type of "TEAM_MEMBER" I used the following statement:
TEAM_MEMBER = createTeam["TeamType","TeamName"];
For a test, I used this code
MyTeam = createTeam ["USMC_Team","Razor Three"];
hint format["TypeName: %1\nTeamName: %2\nTeamtype: %3",typename MyTeam, TeamName MyTeam, TeamType MyTeam];
Output:
TypeName: TEAM_MEMBER
TeamName: Razor Three
TeamType: USMC_Team
I don't know, what to do with this "TEAMS". Maybe only some fragments of VBS(2).
Found some other functions/statements witch accept TEAM_MEMBER types like:
- list = members _TEAM (list of all members of a team)
- _agent = teammember player (Return agent for given person(?))
- _person = agent _agent (Return person for given agent(?))
- isagent (???)
- deleteTeam _TEAM
- _TEAM = createTeam [Type, Name] (Creates a new Team (as seen in example Code))
- teamName _TEAM (Return the TeamName (as seen in example Code))
- teamType _TEAM (Return the TeamType (as seen in example Code))
- _TEAM addTeamMember _MEMBER
- _TEAM removeTeamMember _MEMBER
- fromEditor _TEAM (Return if given Team was inserted form Editor directly)
And what the hell are agents ???
If you type one of this commands into some activation field of a Trigger, most of them are displayed as valid commands with parameters.
Someone else some information about this new data type ???
--HeliJunkie 18:22, 6 June 2009 (CEST)