Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Kyle.cog for Stargate MP
Kyle.cog for Stargate MP
2000-10-30, 6:01 AM #1
In my new MP level (that is ready to be released save for this last problem!!) I need a new kyle.cog to make sure that the player loses the blue key when he dies. That works fine for just the host, but when another player gets the key they can't use it until the host has it, and they cannot use it when the host loses it. So the code to take away the key...
Code:
SetInv(player, 47, 0);
SetInvAvailable(player, 47, 0);

...is not enough. I noticed that the red key cog has the code player == GetSourceRef(); Will placing this before the former code properly define to JK what player should lose the key? Or am I going about this entirely wrong?
2000-10-30, 8:51 AM #2
Make sure the bin is made available when the player gets the key..btw, player = GetSourceRef() means where-ever player is used in the code it will be assumed it is the source of an action.
2000-10-30, 4:30 PM #3
Thanks.. I'm relatively new to cog, so where do I place the SeInvAvailable() so that bluekey is available when player gets it?

------------------
Last one to vote is a rotten egg!!

↑ Up to the top!