1 registered members (AndrewAMD),
1,534
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
get the player position
#432199
11/02/13 10:42
11/02/13 10:42
|
Joined: Nov 2013
Posts: 47
SkullBoy99
OP
Newbie
|
OP
Newbie
Joined: Nov 2013
Posts: 47
|
Hi,guys!I'n new here 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
Expert
|
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: SkullBoy99]
#432205
11/02/13 11:39
11/02/13 11:39
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
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
SkullBoy99
OP
Newbie
|
OP
Newbie
Joined: Nov 2013
Posts: 47
|
|
|
|
|