Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
get the player position #432199
11/02/13 10:42
11/02/13 10:42
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
Hi,guys!I'n new here smile and i want to tell me how to get the player model(x,y coordonates),pleaseee!

Re: get the player position [Re: SkullBoy99] #432200
11/02/13 10:51
11/02/13 10:51
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
well, if you create a model and set the player pointer to it you can access it by simply using player.x, .y and .z


POTATO-MAN saves the day! - Random
Re: get the player position [Re: Kartoffel] #432202
11/02/13 11:01
11/02/13 11:01
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
i put a model on the map with ent_create ("player.mdl", terrain_pos(100,200,300), move_player);
if it is not good,can give me an example

Re: get the player position [Re: SkullBoy99] #432205
11/02/13 11:39
11/02/13 11:39
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
well if terrain_pos is a function which returns a vector there's nothing wrong with it.
if not, just use a vector
ent_create("player.mdl", vector(100, 200, 300), move_player);

then you can either set the player pointer inside the action (move_player) by using player = me; or by creating the player like this:
player = ent_create(...


POTATO-MAN saves the day! - Random
Re: get the player position [Re: Kartoffel] #432206
11/02/13 11:44
11/02/13 11:44
Joined: Nov 2013
Posts: 47
S
SkullBoy99 Offline OP
Newbie
SkullBoy99  Offline OP
Newbie
S

Joined: Nov 2013
Posts: 47
ok,thank you very much

Re: get the player position [Re: SkullBoy99] #432208
11/02/13 12:04
11/02/13 12:04
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
no problem, if you need further explanations or help, let me know.


POTATO-MAN saves the day! - Random

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1