I have this cog here, that takes all of the players weapons when the player crosses an adjoin. but there are 2 problems:
1: If one player crosses the adjoin, all other players lose thier weapons too
2: If the player gets his lightsaber taken away, it retracts, but continues to hum
any help would be appreciated, or better yet, a complete re-write of the cog.
1: If one player crosses the adjoin, all other players lose thier weapons too
2: If the player gets his lightsaber taken away, it retracts, but continues to hum
any help would be appreciated, or better yet, a complete re-write of the cog.
Code:
Flags=0x240
symbols
int player local
message crossed
surface adjoin
int Gun1 local
int Gun2 local
int Gun3 local
int Gun4 local
int Gun5 local
int Gun6 local
int Gun7 local
int Gun8 local
int Gun9 local
int Gun10 local
message StartUp
end
# ======
code
StartUp:
Player = GetLocalPlayerThing();
return;
# .........
crossed:
//Print("No guns for you.");
SetActorFlags(player, 0x8);
Gun1 = GetInv(player, 1);
Gun2 = GetInv(player, 2);
Gun3 = GetInv(player, 3);
Gun4 = GetInv(player, 4);
Gun5 = GetInv(player, 5);
Gun6 = GetInv(player, 6);
Gun7 = GetInv(player, 7);
Gun8 = GetInv(player, 8);
Gun9 = GetInv(player, 9);
Gun10 = GetInv(player, 10);
SetInv(player, 1, 0);
SetInv(player, 2, 0);
SetInv(player, 3, 0);
SetInv(player, 4, 0);
SetInv(player, 5, 0);
SetInv(player, 6, 0);
SetInv(player, 7, 0);
SetInv(player, 8, 0);
SetInv(player, 9, 0);
SetInv(player, 10, 0);
If(GetCurWeapon(player) == 10) jkSetFlags(player, 0x8);
SetCurWeapon(player, 0);
return;
endBaby dragons can't figure out humans- If they didn't want to be eaten, why were they made of meat and treasure?
