Teleport a thing in the air

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Archon
Posts: 11
Joined: Tue Jan 20, 2004 5:46 pm

Teleport a thing in the air

Post 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?
User avatar
Eevee
Posts: 592
Joined: Wed Jul 16, 2003 5:26 am
Contact:

Post by Eevee »

I think you need to spawn a no-gravity teleport landing, not a map spot.
Archon
Posts: 11
Joined: Tue Jan 20, 2004 5:46 pm

Post 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"
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Were you trying to teleport into mid-air though?
Archon
Posts: 11
Joined: Tue Jan 20, 2004 5:46 pm

Post by Archon »

aaa forget it, i tested again with TeleportDest2 and it work, i don't know what happens :o
Locked

Return to “Editing (Archive)”