Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jetdoor=createObject(3095,268.70001220703,1883.4000244141,16)
- rocket=createObject(3786,268.60000610352,1883.8000488281,-15,0,90,0)
- setObjectScale(rocket,13)
- blastdoor1=createObject(2929,215.8994140625,1875.5999755859,13.89999961853)
- blastdoor2=createObject(2927,211.9,1875.5999755859,13.89999961853)
- labdoor=createObject(2951,268.70001220703,1863.9000244141,7)
- blastdoorzone=createColSphere(213.80000305176,1876.1999511719,12.1,15)
- labdoorzone=createColSphere(268.39999389648,1863,7.8,4)
- spawnx,spawny,spawnz=213.30000305176,1908.1999511719,17.3
- function openblastdoors()
- moveObject(blastdoor1,5000,219.95,1875.5999755859,13.89999961853)
- moveObject(blastdoor2,5000,207.9,1875.6,13.89999961853)
- end
- function closeblastdoors()
- moveObject(blastdoor1,5000,215.69999694824,1875.5999755859,13.89999961853)
- moveObject(blastdoor2,5000,211.69999694824,1875.5999755859,13.89999961853)
- end
- function openlabdoor()
- moveObject(labdoor,5000,264.6,1863.8994140625,7)
- end
- function closelabdoor()
- moveObject(labdoor,5000,268.69921875,1863.8994140625,7)
- end
- function openjetdoor()
- moveObject(jetdoor,7000,268.7,1893,16)
- setTimer(liftoff,7000,1)
- end
- function liftoff()
- flare=createObject(354,268.7,1884.2,-31.1)
- moveObject(flare,10000,268.7,1884.2,44)
- moveObject(rocket,10000,268.6,1883.8000488281,60)
- setTimer(spacego,10000,1)
- end
- function spacego()
- moveObject(rocket,20000,268.6,1883.8000488281,400)
- moveObject(flare,20000,268.7,1884.2,383)
- setTimer(bye,20000)
- end
- function bye()
- destroyElement(rocket)
- destroyElement(flare)
- setTimer(mark,1000)
- end
- function landboom()
- landrocket=createObject(3786,xland,yland,400,0,270,0)
- landflare=createObject(254,xland,yland,417,0,270,0)
- moveObject(landrocket,10000,xland,yland,zland)
- moveObject(landflare,10000,xland,yland,zland+13)
- setTimer(boom,10000)
- end
- function boom()
- setCameraTarget(source,mark)
- destroyElement(landrocket)
- destroyElement(landflare)
- createExplosion(xland,yland,zland,10)
- end
- function markit()
- xl,yl,zl=getElementPosition(source)
- mark=createObject(2880,xl,yl,zl)
- end
- function spawn()
- spawnPlayer(source,spawnx,spawny,spawnz)
- fadeCamera(source,true)
- setCameraTarget(source,source)
- end
- addEventHandler("onColShapeHit",blastdoorzone,openblastdoors)
- addEventHandler("onColShapeLeave",blastdoorzone,closeblastdoors)
- addEventHandler("onColShapeHit",labdoorzone,openlabdoor)
- addEventHandler("onColShapeLeave",labdoorzone,closelabdoor)
- addEventHandler("onPlayerJoin", getRootElement(),spawn)
- addCommandHandler("launch",openjetdoor)
- addCommandHandler("mark",markit)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement