I've used the following script to deploy AI from vehicles in a multiplayer map I am working on, by clicking the "Q-key". If you join as a client, everything seems to work as the host, except when you hit the "Q-key", the AI deploy, but you end up bouncing all around the map non-stop. Does anyone have any idea as to why this occurs? And yes, I realize AI don't sync on multiplayer...
(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)
)
)
)
)
Edited by Mysterion on Jun 3, 2010 at 09:03 PM