Hi guys!
I've got three fans that are supposed to hit those you touch them:
Problem: They only hurt the host, no matter who touches the fan. (i.e. if player 3 touches the fan, the host gets hurt)
Help?
Cheers,
Goofz
I've got three fans that are supposed to hit those you touch them:
Code:
symbols
thing fan1 linkid=1
thing fan2 linkid=2
thing fan3 linkid=3
flex damage_amount
int dummy local
message touched
end
code
touched:
if ((GetSenderId()==1) || (GetSenderId()==2) || (GetSenderId()==3))
{
player = GetLocalPlayerThing();
dummy = DamageThing(player, damage_amount, 0x01, player);
}
Return;
endProblem: They only hurt the host, no matter who touches the fan. (i.e. if player 3 touches the fan, the host gets hurt)
Help?
Cheers,
Goofz
) but I think it needs flags.