tylerp14
April 24th, 2011, 05:02 PM
Im making a Armor Lock with help of some people, its finished but i need to make it work for 16 players. Can somebody write this script below to work for 2 extra players? So 3 players all together. If somebody can do do that for me I could figure out how to do 16 players if somebody writes it for 3 players to use in-game, I have 2 beta testers ready to try it with me, just have to wait until I get a script for 2 extra players.
This is for the Host for MP/SP armor lock:
(global short p0flashlight 0)
(global short p0charge 0)
(global short limit 15)
(global boolean p0alock 0)
(script static "unit" player
(unit (list_get (players) 0))
)
(script static "void" effectsmall
(effect_new_on_object_marker "armor_ability\lock\discharge small" (player) "body")
)
(script static "void" effectmedium
(effect_new_on_object_marker "armor_ability\lock\discharge medium" (player) "body")
)
(script static "void" effectlarge
(effect_new_on_object_marker "armor_ability\lock\discharge large" (player) "body")
)
(script continuous P0a
(sleep_until (unit_get_current_flashlight_state (player)) 1)
(set p0alock 1)
(unit_set_desired_flashlight_state (player) 0)
(sleep 30)
(sleep_until (or (= (vehicle_test_seat_list p0lock "crouch2" (players)) 0) (> p0flashlight limit)) 1)
(set p0alock 0)
)
(script continuous P0b
(sleep_until (= p0alock 1) 1)
(set rider_ejection 0)
(object_create_anew p0lock)
(objects_attach (player) "body" p0lock "body")
(objects_detach (player) p0lock)
(vehicle_load_magic p0lock "" (player))
(sleep 30)
(sleep_until (= p0alock 0) 1)
(vehicle_unload p0lock "")
(set rider_ejection 1)
(sleep 10)
(object_destroy p0lock)
)
(script continuous flashlightupdates
(sleep 30)
(if (or (= p0alock 1) (vehicle_test_seat_list p0lock "crouch2" (players)))
(begin (set p0flashlight (+ p0flashlight 1)) (set p0charge (+ p0charge 1)) )
(set p0flashlight (- p0flashlight 1))
)
)
(script continuous remove
(sleep_until (= (vehicle_test_seat_list p0lock "crouch2" (players)) 0) 1)
(object_destroy p0lock)
(if (> p0charge 3) (begin
(if (< p0charge 8) (effectsmall)
(if (< p0charge 12) (effectmedium) (effectlarge)
))
))
(set p0charge 0)
(sleep_until (= (vehicle_test_seat_list p0lock "crouch2" (players)) 1) 1)
)
(script continuous lolololol
(sleep_until (unit_get_current_flashlight_state p0lock) 1)
(vehicle_unload p0lock "")
)Thanks if somebody can write it to work for 2 extra players for me.
This is for the Host for MP/SP armor lock:
(global short p0flashlight 0)
(global short p0charge 0)
(global short limit 15)
(global boolean p0alock 0)
(script static "unit" player
(unit (list_get (players) 0))
)
(script static "void" effectsmall
(effect_new_on_object_marker "armor_ability\lock\discharge small" (player) "body")
)
(script static "void" effectmedium
(effect_new_on_object_marker "armor_ability\lock\discharge medium" (player) "body")
)
(script static "void" effectlarge
(effect_new_on_object_marker "armor_ability\lock\discharge large" (player) "body")
)
(script continuous P0a
(sleep_until (unit_get_current_flashlight_state (player)) 1)
(set p0alock 1)
(unit_set_desired_flashlight_state (player) 0)
(sleep 30)
(sleep_until (or (= (vehicle_test_seat_list p0lock "crouch2" (players)) 0) (> p0flashlight limit)) 1)
(set p0alock 0)
)
(script continuous P0b
(sleep_until (= p0alock 1) 1)
(set rider_ejection 0)
(object_create_anew p0lock)
(objects_attach (player) "body" p0lock "body")
(objects_detach (player) p0lock)
(vehicle_load_magic p0lock "" (player))
(sleep 30)
(sleep_until (= p0alock 0) 1)
(vehicle_unload p0lock "")
(set rider_ejection 1)
(sleep 10)
(object_destroy p0lock)
)
(script continuous flashlightupdates
(sleep 30)
(if (or (= p0alock 1) (vehicle_test_seat_list p0lock "crouch2" (players)))
(begin (set p0flashlight (+ p0flashlight 1)) (set p0charge (+ p0charge 1)) )
(set p0flashlight (- p0flashlight 1))
)
)
(script continuous remove
(sleep_until (= (vehicle_test_seat_list p0lock "crouch2" (players)) 0) 1)
(object_destroy p0lock)
(if (> p0charge 3) (begin
(if (< p0charge 8) (effectsmall)
(if (< p0charge 12) (effectmedium) (effectlarge)
))
))
(set p0charge 0)
(sleep_until (= (vehicle_test_seat_list p0lock "crouch2" (players)) 1) 1)
)
(script continuous lolololol
(sleep_until (unit_get_current_flashlight_state p0lock) 1)
(vehicle_unload p0lock "")
)Thanks if somebody can write it to work for 2 extra players for me.