Author Topic: [Ingame]How to get XYZ coords of the player for eventing spawnprojectile?  (Read 1022 times)

Is there any clientsided command,console command or add-on that can tell me the X,Y,Z co-ordinates of the player in a server

I need it for spawnProjectile events, if i want a brick to fire a projectile into another brick that is far from the original brick, i can use two XYZ locations of both bricks to calculate the direction where to shoot the projectile,
instead of guessing the XYZ for the event

Is there any clientsided command,console command or add-on that can tell me the X,Y,Z co-ordinates of the player in a server

I need it for spawnProjectile events, if i want a brick to fire a projectile into another brick that is far from the original brick, i can use two XYZ locations of both bricks to calculate the direction where to shoot the projectile,
instead of guessing the XYZ for the event
echo(findclientbyname(<persons name here>).player.gettransform());

echo(findclientbyname(<persons name here>).player.gettransform());
He means for eventing, you twit.

You can just use the SpawnHomingProjectile event. It fires projectiles at the closest player, bot, vehicle, etc.

He means for eventing, you twit.

You can just use the SpawnHomingProjectile event. It fires projectiles at the closest player, bot, vehicle, etc.
he means how to find his position, to aim a projectile, not a homing projectile, you twit

He means for eventing, you twit.

You can just use the SpawnHomingProjectile event. It fires projectiles at the closest player, bot, vehicle, etc.
Or, you could just set the projectile to shoot to a random location where you want it to be fired, then go to where it hits and/or disappears and place a brick there afterwards. Its eaiser that way, I do it all the time.

what...?
i somehow think that that isn't what he wants

I suddenly cannot edit posts. I am sad.

I didnt read what he wanted. By the title, he wanted to spawn it to go to a players position.

EDIT:
Stop that.

Read the OP rather than the title.

I suddenly cannot edit posts. I am sad.
you couldn't recently either, not in help nor drama
Read the OP rather than the title.
you could just keep these obvious ideas to yourself

It's much more satisfying to puzzle it out for yourself, rather than a quick-answer solution.

If i have two far towers, and i want to use SpawnProjectile radio wave, to find the xyz for the event i can use two xyz of both tower locations.
I need a console command/event/command that is clientsided, and it tells my player(or crosshair)position in X,Y,Z

ah, you could use kalphiters position thingy, just search for the elevators addon, then go to the rest of his addons to get the client_position, or whatever it's called

There used to be a mod where you could type /getcoordinates, however, I think it's broken.

ok i got kalphs position addon and its exactly what i needed