X Y Z Coordinates
#1

I have a problem, I've been trying to figure out the X Y Z Coordinate for the position of in-front of a player, any help would be much appreciated, thank you.

- Ki||
Reply
#2

Will this work for anything? - I have read the code, but don't understand how this will work with other objects.
Reply
#3

Uh- does the code work for objects, such as guns, for example, if I had a AK-47, and I did /dropgun, would it show in-front of me if I had this code implemented?
Reply
#4

Quote:
Originally Posted by Ki||
Посмотреть сообщение
Uh- does the code work for objects, such as guns, for example, if I had a AK-47, and I did /dropgun, would it show in-front of me if I had this code implemented?
People can drop guns in objects you don't want to.
Reply
#5

Yes, it will work. For example in a /dropgun command, you would use GetXYPosInFrontOfPlayer to get the coords of the spot in front of them. Then create a pickup at that location.
Reply
#6

Quote:
Originally Posted by randomkid88
Посмотреть сообщение
Yes, it will work. For example in a /dropgun command, you would use GetXYPosInFrontOfPlayer to get the coords of the spot in front of them. Then create a pickup at that location.
Actually, I'm not looking forward to making a "pickup", I am actually making a command that allows you to see the actual gun laying on the ground.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)