#1 Вопросы по скриптингу » Глючной код столкновения. » 13-09-2007 03:02

EyeofPalpatine
Replies: 16

Немного переделанный скрипт Seemann`a.

create_thread @SCRIPT
end_thread

:SCRIPT
thread "SCRIPT"
while true
wait 100
if Actor.Driving($RANDOM_ACTOR)
then
03C0: 0@ = actor $RANDOM_ACTOR car
09C0: $rand_car = get_random_car_in_area $xs1 $ys1 $xs2 $ys2 1.0 with_actors -1
09C0: $rand_car2 = get_random_car_in_area $xs1 $ys1 $xs2 $ys2 1.0 with_actors -1
051D: cars $rand_car and $rand_car2 collided
080E: store_car $rand_car present_ped_event_to 2@
if 0154: car $rand_car in_zone 'SAN_AND'
then
Actor.Stopped($RANDOM_ACTOR, 2)
end
end 
end
end_thread

сам не проверял, но явно глючной. Как можно испр.?

Board footer

Powered by FluxBB