1. Ah, I see, thanks.
2. Check my avatar quote.
Also, I made a little hotfix, the script wasn't working in Sapien due to uneven parenthesis count, this one goes through fine, and has the Objects_attach and Objects_detach command CAD was just talking about. I'm still fixing the MP one, it's considerably longer then the SP one, so it may take a while.
Hotfix:
Code:
(global short plyrnum 0)
(script continuous increase_plyrnum
(begin
(set plyrnum (+ plyrnum 1))
)
)
(script continuous reset_plyrnum
(if
(= (> plyrnum 15) true)
(begin
(set plyrnum 0)
)
)
)
(script startup Jay_is_very_lazy
(object_create_anew board1)
)
(script continuous no_random_collision
(object_set_collideable board1 false)
)
(script continuous hijack_attaches
(objects_attach ghostie1 "frame hull" board1 "frame hull")
(objects_detach ghostie1 board1)
)
(script continuous hijack_Ghostie1_empty
(sleep_until (if (vehicle_test_seat ghostie1 "driver" (unit (vehicle_driver ghostie1))) false))
(sleep_until (if (vehicle_test_seat board1 "driver" (unit (list_get (players) 0))) true))
(begin
(object_cannot_take_damage Ghostie1)
(camera_set_dead (unit (list_get (players) 0)))
(unit_exit_vehicle (unit (vehicle_driver board1)))
(vehicle_load_magic ghostie1 "driver" (unit (list_get (players) plyrnum)))
(Camera_control 0)
(object_can_take_damage Ghostie1)
)
)
(script continuous hijack_Ghostie1_full
(sleep_until (if (vehicle_test_seat ghostie1 "driver" (unit (vehicle_driver ghostie1))) true))
(sleep_until (if (vehicle_test_seat board1 "driver" (unit (list_get (players) 0))) true))
(begin
(object_cannot_take_damage Ghostie1)
(camera_set_dead (unit (list_get (players) 0)))
(unit_exit_vehicle (unit (vehicle_driver board1)))
(unit_exit_vehicle (unit (vehicle_driver ghostie1)))
(vehicle_load_magic ghostie1 "driver" (unit (list_get (players) plyrnum)))
(Camera_control 0)
(object_can_take_damage Ghostie1)
)
)
Bookmarks