Assign this script to the antigravlift (not antigravplatform) AI Main. The script uses the Page Up key for up and the Page Down key for down. You can stop the lift and get back on at any floor.
If you step off the lift and fall, it will not come back to you. You must be standing on it to use it. If however you can climb back up to it, it will work again once you stand on it.
;Artificial Intelligence Script
; by xplosys
;This script may be used or altered freely and for any purpose
;Header
desc = Manual Lift (Page Up = UP, Page Down = DOWN)
;Use with antigravlift (NOT antigravplatform)
;Assign as AI Main
;Triggers
:state=0:state=1
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=201:state=5,coloff
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=209:state=6,coloff
:state=1,plrdistfurther=51:state=3,coloff
:state=3,playerassociated:state=1,unassociateplayer,colon
:state=5,plrdistwithin=50:sound=audiobank\atmos\motorhum.wav,state=8,associateplayer
:state=5,plrdistfurther=55,playerassociated:state=1,unassociateplayer,colon
:state=6,plrdistwithin=50:sound=audiobank\atmos\motorhum.wav,state=9,associateplayer
:state=6,plrdistfurther=55,playerassociated:state=3,unassociateplayer,colon
:state=8,raycastup=20 80:state=1,plraddhealth=-1
:state=8:state=1,moveup=1
:state=9,raycastup=-3 0:state=1
:state=9:state=1,moveup=-1
The code can be altered to work with other lifts and entities. You will need to change the plrhigher and raycast values to suite the model you use. Now if we can just get it to move horizontally.
Happy game making.
The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.