Getting player's X Y or Z coordinate Only!

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
Creep
CJ Worshipper
CJ Worshipper
Posts: 268
Joined: August 31st, 2006, 10:32 am
Location: Hungary

Getting player's X Y or Z coordinate Only!

Post by Creep » May 15th, 2011, 5:52 pm

Hello!
I just want to get: self.origin.x coordinate only for example.
Not an ( x , y , z ) format, only one of the three numbers :) Is this possible?
Thanks, Creep! :)
Image

User avatar
MasterThomy
CJ Wannabe
CJ Wannabe
Posts: 42
Joined: December 23rd, 2008, 5:14 pm

Re: Getting player's X Y or Z coordinate Only!

Post by MasterThomy » May 15th, 2011, 6:28 pm

x: self.origin[0]
y: self.origin[1]
z: self.origin[2]
Ex CoD2 mapper/modder.

User avatar
Creep
CJ Worshipper
CJ Worshipper
Posts: 268
Joined: August 31st, 2006, 10:32 am
Location: Hungary

Re: Getting player's X Y or Z coordinate Only!

Post by Creep » May 15th, 2011, 7:17 pm

thanks :))
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests