The following is a script I am using to deploy actors from a Pelican. If you are too close to the actors as they deploy, they will try to jump back into the vehicle before you can get away, which requires you to swoop in and drop them on the run, so to speak. How can I add in a delay time to my current script to keep them from jumping back in so quickly?
(script continuous empty_marinepelican1
(begin
(if
(and
(= (unit_get_current_flashlight_state mp1) true) (= (vehicle_test_seat mp1 P-pilot (unit (list_get (players) 0))) true)
)
(begin
(vehicle_unload mp1 P-riderLF)
(vehicle_unload mp1 P-riderRF)
(vehicle_unload mp1 pelican-gunner)
(unit_enter_vehicle (unit (list_get (players) 0)) mp1 P-pilot)
(unit_set_desired_flashlight_state mp1 false)
(ai_migrate marineassault mfrontline)
(ai_migrate spartanassault mfrontline)
)
)
)
)