Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 2,179 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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