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 → Weapon/Flag cog question.
Weapon/Flag cog question.
2000-10-17, 5:10 PM #1
I'm new at making cogs and would really appreciate some help on a project that I'm working on. This is what I wish to implement:

I want to create a cog that puts a weapon in the level, but I need the weapon to be sort of like a flag in a CTF game. Only the person that has this weapon can use it, and when the person is killed the weapons will either return to it's spawn point or be picked up within a certain amount of time. Any ideas would really be appreciated, thanks in advance.

mohh

"Seen it all, done it all, can't remember most of it."
2000-10-18, 4:51 AM #2
you could create the weapon at a ghost position with CreateThing(thing, ghost) and then change it's flags to no respawn. Then in the killed message of the kyle.cog, check if the player has this weapon, if yes, SetInv(player, weaponbin, 0); , then call the respawn cog again...
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2000-10-18, 9:25 PM #3
Great,

Thanks for the help. I should be able to figure it out with what you've told me.

mohh

"Seen it all, done it all, can't remember most of it."

↑ Up to the top!