--> LUA Script - precede every function and global member with lowercase name of script + '_main' --> lift script by smallg --> modified by Tingalls --> changed it so that lift can be called remotely with liftcall.lua --> you need to give the lift/entity a unique name and then type the name into --> the ifUsed properties of the remote switch --> you can use the lift either way without changing the script function liftuse_init(e) end lift_max = 800 --set upper height to stop lift at lift_min = 600 --set lower height to stop lift at (Flat ground level = 600) pressed = 0 isTriggered = 0 up = 1 show_prompt = 1 timeset = 0 time1 = 0 time2 = 0 timepassed = 0 function liftuse_main(e) if timeset == 0 then time1 = g_Time timeset = 1 end time2 = g_Time timepassed = time2 - time1 CollisionOff(e) PlayerDist = GetPlayerDistance(e) if PlayerDist <= 80 and show_prompt == 1 then Prompt("Press E to activate lift") end if g_Entity[e]['y'] >= lift_max then up = 0 show_prompt = 1 isTriggered = 0 elseif g_Entity[e]['y'] <= lift_min then up = 1 show_prompt = 1 isTriggered = 0 elseif g_Entity[e]['y'] > lift_min + 2 then show_prompt = 0 end if g_KeyPressE == 1 and pressed == 0 then pressed = 1 isTriggered = 1 end if isTriggered == 1 then if timepassed >= 10 then if g_Entity[e]['y'] < lift_max and up == 1 then MoveUp(e,300) end if g_Entity[e]['y'] > lift_min and up == 0 then MoveUp(e,-300) end timeset = 0 end end if g_KeyPressE == 0 then pressed = 0 end CollisionOn(e) end