Page 1 of 1

Teleport a thing in the air

Posted: Thu Jan 29, 2004 2:01 pm
by Archon
I like to teleport a Scripted Marine in the air (128 units up). The scripted marine will be teleported above of itself, but i have some troubles. i do this:

Code: Select all

Sector_SetGravity(tag1,0,0); // to set the thing always in the air
Spawn("MapSpot",x,y,128.0,tag2);
TeleportOther(tag3,tag2,0);
Thing_remove(tag2);
tag1= of the sector
tag2= of the map spot
tag3= of the Scripted Marine

but it don't work. ¿What is wrong?

Posted: Thu Jan 29, 2004 2:03 pm
by Eevee
I think you need to spawn a no-gravity teleport landing, not a map spot.

Posted: Thu Jan 29, 2004 2:13 pm
by Archon
I do it before with a mapspot and don't have any troubles (teleporting the thing int other sector). I also tested with "TeleportDest","TeleportDest2","TeleportDest3" and "MapSpotGravity"

Posted: Thu Jan 29, 2004 2:17 pm
by HotWax
Were you trying to teleport into mid-air though?

Posted: Thu Jan 29, 2004 2:42 pm
by Archon
aaa forget it, i tested again with TeleportDest2 and it work, i don't know what happens :o