2 registered members (AndrewAMD, Ayumi),
1,395
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: TelePort Gun (swapping X,Y,Z coords) need help
[Re: TWO]
#167011
11/12/07 21:20
11/12/07 21:20
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
Tried that, same thing, empty pointer...
var TraceCoords;
function TeleportGun() { me = player; 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 = 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; } }
thats what i have, then in my input script i call TeleportGun(); obviouslly. That function is inside the actual player script, built off of the PlBiped01.wdl that comes with gamestudio a7.
vec_rotate(TraceCoords.x, player.pan);
^ that is the line causing problems at the moment.
btw, thanks so much for helping me. i appreciate it.
|
|
|
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
|
|
|