30.12.2009, 04:07
This is what I have been trying to figure out. I would like to construct a command that I could type in game, like /create (Object id) and the object would spawn in front of me, or about 2 or 3 units away. If someone could point me in the right direction, this would be great.
On an outline i was guessing it would go something like,
if OnPlayerCommandText /create == true
CreateObject (id,float:X, etc. etc.
float:X + 5 //To move the object away from players position so it won't spawn on the player
What I need help on here, is how to get the players position, and how to do this in a nutshell, It seems strcmp doesn't work? or am I incorrect here? I was thinking dcmp? anyways, any help greatly appreciated.
Thanks for your time
On an outline i was guessing it would go something like,
if OnPlayerCommandText /create == true
CreateObject (id,float:X, etc. etc.
float:X + 5 //To move the object away from players position so it won't spawn on the player
What I need help on here, is how to get the players position, and how to do this in a nutshell, It seems strcmp doesn't work? or am I incorrect here? I was thinking dcmp? anyways, any help greatly appreciated.
Thanks for your time