team render object(item)
by Cyril Dieumegard · in Torque Developer Network · 11/05/2009 (6:26 am) · 0 replies
hi,
I work on a multiplayer game and we have 2 team.
When team1 put an object on the terrain, team1 can see this object but not team2.
How i can do that?
now i create the object in server side script
%obj = new Item(myName)
{
datablock = mydata;
scale = "10 10 10";
static = true;
Position = getWord(%pos, 0) SPC getWord(%pos, 1) @ " 0";
team = playerTeam;
};
MissionGroup.add(%obj);
I can't find where i can't compare team and render or not the object.
I have search long time in the code and on the forum but i can find help.
If you can help me, i appreciate it very much.
tank you.
I work on a multiplayer game and we have 2 team.
When team1 put an object on the terrain, team1 can see this object but not team2.
How i can do that?
now i create the object in server side script
%obj = new Item(myName)
{
datablock = mydata;
scale = "10 10 10";
static = true;
Position = getWord(%pos, 0) SPC getWord(%pos, 1) @ " 0";
team = playerTeam;
};
MissionGroup.add(%obj);
I can't find where i can't compare team and render or not the object.
I have search long time in the code and on the forum but i can find help.
If you can help me, i appreciate it very much.
tank you.
About the author