Alright, here's what I'd like to do:
When the player presses a hotkey, this cog fires a *special template.* Then it check to see if there are any other *special templates* in view, (checks their distance and stuff which I can do) and then after a predefined length of time it either does what I tell it, if their are other *special templates* in view, or destroys itself.
What I'm hopeing to get here is a "saber-locking" effect, ala JO, where the saber checks if another saber is swinging at it while it's swinging itself, but here it's not actually going to be the saber...it'll be my aforementioned *special template,* which might aswell just be a ghost. I'll shoot it out about 0.2 "JK-not-exactly-second-time-units" after the user swings, and it'll check if there's another one close enough and at the right angle (not behind the user) to merit a saber lock.
Right, that's my dream.
But...like I said...where do I start? How would I go about defining something in an MP game (this has to work in MP) as this *special template* and have the cog recognize other *special templates* aswell?
This is probably some fundamental of cog I've missed over the past 2 years, and I'd greatly appreciate some help.
As usual, thanks,
-TIE
When the player presses a hotkey, this cog fires a *special template.* Then it check to see if there are any other *special templates* in view, (checks their distance and stuff which I can do) and then after a predefined length of time it either does what I tell it, if their are other *special templates* in view, or destroys itself.
What I'm hopeing to get here is a "saber-locking" effect, ala JO, where the saber checks if another saber is swinging at it while it's swinging itself, but here it's not actually going to be the saber...it'll be my aforementioned *special template,* which might aswell just be a ghost. I'll shoot it out about 0.2 "JK-not-exactly-second-time-units" after the user swings, and it'll check if there's another one close enough and at the right angle (not behind the user) to merit a saber lock.
Right, that's my dream.
But...like I said...where do I start? How would I go about defining something in an MP game (this has to work in MP) as this *special template* and have the cog recognize other *special templates* aswell?
This is probably some fundamental of cog I've missed over the past 2 years, and I'd greatly appreciate some help.
As usual, thanks,
-TIE