You storing the player's position vector
you do the same for the enemy's
Then you can calculate the deltA between them. So for e.x
if(fpDelta == 15)
PlaySound(...);
Would be cool as long as PlaySound works for you
It is just by calculating the vectors of your player position and the enemy player position .. and make the certain distance between them , If he been near to you .. play sound or do the stuff you want.
Originally Posted by zZzeta/S
You could copy the method the detector uses.
You storing the player's position vector
you do the same for the enemy's
Then you can calculate the deltA between them. So for e.x
if(fpDelta == 15)
PlaySound(...);
you could just store the player's position and call the function ''x'' depending on how close are/is the player
except that, not worth at all, would be more annoying that anything else
Originally Posted by Flengo
Originally Posted by Flengo
Originally Posted by zZzeta/S
^^ Wrote the first thing i could remember. Partyed to hard last night^^
Still drunk from the party?
Still drunk from the party?
Partied* not partyed Mr. Editor
Well if you REALLY wanna get technical, he also misspelled 'too.' LOL, I'm a stickler for grammar.