2 registered members (AndrewAMD, Ayumi),
1,405
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
[Re: immolat3]
#167009
11/12/07 21:06
11/12/07 21:06
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
function TeleportGun() { vec_set(TraceCoords.x, vector(10000, 0, 0)); //shoots 10000 quants vec_rotate(TraceCoords.x, player.pan); //shoots in the direction of the player c_trace(player.x, TraceCoords.x, ignore_me | ignore_passable | activate_shoot); if (you) { var tempX; var tempY; var tempZ; tempX = my.x; tempY = my.y; tempZ = my.z; my.x = TraceCoords.x; my.y = TraceCoords.y; my.z = TraceCoords.z; you.x = tempX; you.y = tempY; you.z = tempZ; } }
i tried to do the teleport in more steps thinking it might make it easier to see for myself, but this still gives me empty pointers
i switched it to camera.pan, player.pan, and my.pan all with the same results.
Also tried switching to camera.pan and making all the my.x and such to player.x
function TeleportGun() { vec_set(TraceCoords.x, vector(10000, 0, 0)); //shoots 10000 quants vec_rotate(TraceCoords.x, camera.pan); //shoots in the direction of the player c_trace(player.x, TraceCoords.x, ignore_me | ignore_passable | activate_shoot); if (you) { var tempX; var tempY; var tempZ; tempX = player.x; tempY = player.y; tempZ = player.z; player.x = TraceCoords.x; player.y = TraceCoords.y; player.z = TraceCoords.z; you.x = tempX; you.y = tempY; you.z = tempZ; } }
this gives mea different empty pointer, it says
c_trace(player.x, TraceCoords.x, ignore_me | ignore_passable | activate_shoot);
contains the empty pointer
Last edited by immolat3; 11/12/07 21:09.
|
|
|
Entire Thread
|
TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 07:17
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Michael_Schwarz
|
11/12/07 08:33
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 16:41
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 19:45
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 20:03
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 20:15
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 20:38
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 20:42
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 20:54
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 20:56
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:06
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:16
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:20
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:21
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:25
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:30
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:31
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:35
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:37
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:38
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:45
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
TWO
|
11/12/07 21:47
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:49
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 21:56
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:01
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:05
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:10
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 22:14
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Nems
|
11/12/07 22:58
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 23:03
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 23:46
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/12/07 23:55
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/13/07 00:23
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
immolat3
|
11/13/07 01:28
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
|
Spectre
|
11/12/07 21:30
|
|
|