Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,534 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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 | chip programmers | 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