This should detach thing flag from player if he dies, and if he is in team 2, but it does nothing, anyone know why?
[note: this is a part of a cog!]
------------------
Life is like... skating... yeah, skating is a good example. You see someone skating and think "Hey, that looks like fun and easy!". You go and buy a skateboard and try, you get a few broken bones, asphalt-face and stuff... But hey, i'm not the one who gets hurt!
[This message has been edited by CaveDemon (edited March 01, 2002).]
[note: this is a part of a cog!]
Code:
killed:
if(GetPlayerTeam(GetSenderRef()) == 2)
{
DetachThing(flag);
SetPulse(0);
print("w00t");
SetPlayerTeam(player, 1);
SetThingModel(player, red);
captured = 0;
flagcarrier = -1;
}
Return;------------------
Life is like... skating... yeah, skating is a good example. You see someone skating and think "Hey, that looks like fun and easy!". You go and buy a skateboard and try, you get a few broken bones, asphalt-face and stuff... But hey, i'm not the one who gets hurt!
[This message has been edited by CaveDemon (edited March 01, 2002).]
Last edited by mb; today at 10:55 AM.

![http://forums.massassi.net/html/tongue.gif [http://forums.massassi.net/html/tongue.gif]](http://forums.massassi.net/html/tongue.gif)