ive been messing with this as i have a level on a ship with 2 levels a brig and a deck (nice models Lafette
) problem is the uper deck wheel which i use a multimap script on is over the trigger and so the player just triggers it on both levels so i thought maybe a transportinzone on a door so ive started to adapt the warp script (one of smallg's edited scripts) to do the job but getting a global nil error (My favorite) i know im missing maybe setting out a variable or sommat but the brains turned to fudge heres what i have so far theres a couple of video functions in there so you could play a video before transporting
paragraph = {}
activated = {}
function doortransport_init_name(e,name)
-- This will take the paragraph from the name in the propertiies of the entity..
paragraph[e] = name
activated[e] = 0
end
function doortransport_main(e)
-- 200 is the distance you want the script to react you can change this to whatever you want..
if GetPlayerDistance(e) <= 80 then
if activated[e] == 0 then
Prompt("Press E to Enter")
end
if g_KeyPressE == 1 or activated[e] == 1 then
-- 30,80 is the position on the screen for the text you can change this if you want..
TextCenterOnX(30,80,4,paragraph[e])
activated[e] = 1
FreezePlayer()
PlayVideo (e,0)
Destroy(e)
UnFreezePlayer()
FreezePlayer()
PlayVideo (e,1)
Destroy(e)
UnFreezePlayer()
transportinzoneIfUsed(e)
end
else
activated[e] = 0
end
end