
Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Mar 25, 2009 02:01 PM
Msg. 1 of 9
Hey all, I seem to have a problem. I have a script that has me teleport to a certain spot, along with a bsp switch, along with a few other commands. This would appear to run smoothly, but whenever I get to the trigger, the screen rotates as if I had died, and nothing happens. I'll post the script section here. Please bear with the long section of destroy commands. (script startup won (sleep_until (volume_test_objects gameizdun (players))15) (set airsupport 0) (object_teleport (unit (list_get (players) 0)) exit_light) (switch_bsp 0 ) (object_destroy store1) (object_destroy store2) (object_destroy store3) (object_destroy store4) (object_destroy store5) (object_destroy store6) (object_destroy store7) (object_destroy store8) (object_destroy store9) (object_destroy store10) (object_destroy store11) (object_destroy store12) (object_destroy store13) (object_destroy store14) (object_destroy store15) (object_destroy store16) (object_destroy store17) (object_destroy a) (object_destroy b) (object_destroy c) (object_destroy d) (object_destroy e) (object_destroy f) (object_destroy g) (object_destroy h) (object_destroy i) (object_destroy j) (object_destroy k) (object_destroy l) (object_destroy wraithscenery) (object_destroy door8) (object_destroy door7) (object_destroy door6) (object_destroy door5) (object_destroy door4) (object_destroy door3) (object_destroy door2) (object_destroy door1) (object_destroy door10) (object_destroy door11) (object_destroy door12) (object_destroy door13) (object_destroy door14) (object_destroy locks0 ) (object_destroy locks1 ) (object_destroy 1) (object_destroy 2) (object_destroy 3) (object_destroy 4) (object_destroy 5) (object_destroy 6) (object_destroy 7) (object_destroy 8) (object_destroy 9) (object_destroy 10) (object_destroy 11) (object_destroy 12) (object_destroy 13) (object_destroy 14) (object_destroy 15) (object_destroy 16) (object_destroy 17) (object_destroy cool0) (object_destroy cool1) (object_destroy cool3) (object_destroy cool2) (object_create fire1 ) (object_create fire2 ) (object_create fire3 ) (object_create destroyed ) (unit_kill destroyed ) (sleep 100 ) (effect_new "vehicles\fighterbomber\nuke\huge explosion" superduper) (sound_impulse_start "weapons\sphere\sounds\expl" none 1 ) (object_destroy boarding ) (wake save_done )
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Mar 25, 2009 07:40 PM
Msg. 2 of 9
Could you show us a video of what happens?
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Mar 25, 2009 07:44 PM
Msg. 3 of 9
Sure thing. Give me a second to get it... http://www.xfire.com/video/94ad2/The trigger volume is right outside the hangar. Edited by Officer egg on Mar 25, 2009 at 07:53 PM
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Mar 25, 2009 10:13 PM
Msg. 4 of 9
That's odd... it must have something to do with the BSP switch. You are teleporting the player inside the BSP you're switching to right? If so, then try moving the "object_teleport" command after the "switch_bsp". It might be because you are teleporting right before the BSP switch, which for some reason causes the glitch during the BSP switch. Just a guess, but I don't see any other reason.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Mar 25, 2009 10:35 PM
Msg. 5 of 9
It seems like the player dies for some reason. That explains why the camera turned around like that. Try this: Switch BSP BEFORE you teleport the player. And I'm not sure what happens if you teleport a player while he's inside a vehicle.
|
|
|

Sabre
Joined: Dec 10, 2008
I joined RB in protecting Donut's avatar.
|
Posted: Mar 26, 2009 12:39 AM
Msg. 6 of 9
Quote: --- Original message by: Gamma927 It seems like the player dies for some reason. That explains why the camera turned around like that. Try this: Switch BSP BEFORE you teleport the player. And I'm not sure what happens if you teleport a player while he's inside a vehicle. Maybe the same thing that happens in Coldsnap?Anyway, yeah, put the teleport code after the BSP code. A computer can't put you in a place that doesn't exist. like Life, after you die, it won't send you to purgatory, because Purgatory doesn't exist.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Mar 26, 2009 12:40 AM
Msg. 7 of 9
Quote: --- Original message by: SabreQuote: --- Original message by: Gamma927 It seems like the player dies for some reason. That explains why the camera turned around like that. Try this: Switch BSP BEFORE you teleport the player. And I'm not sure what happens if you teleport a player while he's inside a vehicle. Maybe the same thing that happens in Coldsnap?Anyway, yeah, put the teleport code after the BSP code. A computer can't put you in a place that doesn't exist. like Life, after you die, it won't send you to purgatory, because Purgatory doesn't exist. Maybe I don't play on Coldsnap, but I'm assuming that you meant that the vehicle teleports with the player. In that case, I learned something new today.
|
|
|

Sabre
Joined: Dec 10, 2008
I joined RB in protecting Donut's avatar.
|
Posted: Mar 26, 2009 12:46 AM
Msg. 8 of 9
Quote: --- Original message by: Gamma927Quote: --- Original message by: SabreQuote: --- Original message by: Gamma927 It seems like the player dies for some reason. That explains why the camera turned around like that. Try this: Switch BSP BEFORE you teleport the player. And I'm not sure what happens if you teleport a player while he's inside a vehicle. Maybe the same thing that happens in Coldsnap?Anyway, yeah, put the teleport code after the BSP code. A computer can't put you in a place that doesn't exist. like Life, after you die, it won't send you to purgatory, because Purgatory doesn't exist. Maybe I don't play on Coldsnap, but I'm assuming that you meant that the vehicle teleports with the player. In that case, I learned something new today. Yeah, there are special vehicle teleporters, they use a code to teleport both the player and the vehicle at the same time.
|
|
|

Officer egg
Joined: Mar 16, 2008
Dancing is forbidden.
|
Posted: Mar 26, 2009 12:52 AM
Msg. 9 of 9
Actually a teleport command executed while a player is in a vehicle will only teleport the player. It does that with another BSP switch I have.
I'll try putting the teleport command after the switch. Thanks for the help. Edited by Officer egg on Mar 26, 2009 at 12:54 AM
|
|
|