CodeBrain
June 25th, 2008, 05:16 PM
LoL I can has script that works! :D
btw: Had it for a while, didnt realize anyone would still need it >_<
(script continuous omfghax
(object_create_anew elite)
(object_create_anew wraith)
(unit elite)
(unit wraith)
(unit_enter_vehicle elite wraith "wraith-driver")
(sleep_until (= (vehicle_test_seat_list wraith "wraith-driver" elite) true) 5)
(ai_attach elite wraith-driving/pwnage)
(ai_command_list wraith-driving/pwnage haxdriver)
(sleep_until (= (and (= (unit_get_health elite) 0) (= (unit_get_health wraith) 0)) true)))
This script means:
It makes a elite biped and a wraith. The script makes them both units, and the elite biped enters the wraith. This script waits untill that seat for the wraith is filled by the elite biped, then continues. From there, it attaches it to a encounter, and gives it a command list. Then it sleeps untill both of them die, which makes it start all over again. They perfectly drive the entire command list.
Why/How this happens:
When the biped goes into the vehicle, it doesn't have it's AI yet, so it thinks its still on the ground, not in a vehicle. When the script attaches the biped to the encounter and gives it the command list, the ai believes its on the ground still, not in the vehicle.
The result? A elite in a wraith that perfectly follows the command list and attacks people.
The command list is just a figure eight around the bloodgulch bases, lol.
btw: Had it for a while, didnt realize anyone would still need it >_<
(script continuous omfghax
(object_create_anew elite)
(object_create_anew wraith)
(unit elite)
(unit wraith)
(unit_enter_vehicle elite wraith "wraith-driver")
(sleep_until (= (vehicle_test_seat_list wraith "wraith-driver" elite) true) 5)
(ai_attach elite wraith-driving/pwnage)
(ai_command_list wraith-driving/pwnage haxdriver)
(sleep_until (= (and (= (unit_get_health elite) 0) (= (unit_get_health wraith) 0)) true)))
This script means:
It makes a elite biped and a wraith. The script makes them both units, and the elite biped enters the wraith. This script waits untill that seat for the wraith is filled by the elite biped, then continues. From there, it attaches it to a encounter, and gives it a command list. Then it sleeps untill both of them die, which makes it start all over again. They perfectly drive the entire command list.
Why/How this happens:
When the biped goes into the vehicle, it doesn't have it's AI yet, so it thinks its still on the ground, not in a vehicle. When the script attaches the biped to the encounter and gives it the command list, the ai believes its on the ground still, not in the vehicle.
The result? A elite in a wraith that perfectly follows the command list and attacks people.
The command list is just a figure eight around the bloodgulch bases, lol.