1 registered members (AndrewAMD),
1,075
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: getting player coordinates (x,y,z)
[Re: immolat3]
#166899
11/11/07 01:32
11/11/07 01:32
|
Joined: Mar 2005
Posts: 84 The Sacred Silence and Sleep
Spectre
Junior Member
|
Junior Member
Joined: Mar 2005
Posts: 84
The Sacred Silence and Sleep
|
Assuming "player=my;" : Code:
panel PlayerLocPan { digits(10,10,6,*,1,my.x); digits(10,30,6,*,1,my.y); digits(10,50,6,*,1,my.z); flags = visible; } Would show the players coordinates in the level at all times. Not hard to map the visibility of the panel to a key. Hope that helped!
|
|
|
Re: getting player coordinates (x,y,z)
[Re: immolat3]
#166901
11/11/07 01:49
11/11/07 01:49
|
Joined: Mar 2005
Posts: 84 The Sacred Silence and Sleep
Spectre
Junior Member
|
Junior Member
Joined: Mar 2005
Posts: 84
The Sacred Silence and Sleep
|
Just like that really... In a function as long as the variable was declared you could just type what you just did... function WhatHaveYou() { ...... // some code xVar = my.x, xVar = my.y; etc. ...... // more code } If I may direct you to AUM 59 you can read the workshop about weapons using c_trace which should help immensely in your transporter idea. I'm a terrible coder and I've already figured out a way to acclomplish that
|
|
|
Re: getting player coordinates (x,y,z)
[Re: immolat3]
#166904
11/11/07 20:08
11/11/07 20:08
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
|
|
|
Re: getting player coordinates (x,y,z)
[Re: immolat3]
#166905
11/11/07 20:31
11/11/07 20:31
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
Basically I have
panel showXYZ() { digits(10,10,6,*,1,my.x); digits(10,30,6,*,1,my.y); digits(10,50,6,*,1,my.z); flags = visible; } starter showPlayerXYZ(){ while(1){ showXYZ.visible = on; showXYZ.refresh = on; wait(1); }
and that just displays three 0's
|
|
|
Re: getting player coordinates (x,y,z)
[Re: immolat3]
#166906
11/11/07 20:56
11/11/07 20:56
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|