Temat:
Dezaktywacja opcode 09EF
|
Napisano dnia: 2015-08-03 20:17:22
Próbowałem wiele sposobów, ale wciąż nic z tego. Mój kod zamieszczam poniżej. Pomoże mi ktoś znaleźć tu błąd?
{$CLEO}
0000:
0A95: enable_thread_saving
while true
0001: wait 100 ms
if
Player.Defined($PLAYER_CHAR)
then
if and
Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 49 // 1
then
03C0: 0@ = actor $PLAYER_ACTOR car
0441: 1@ = car 0@ model
09EF: set_behind_camera_autoposition_mode_for_car_model 1@ distance 1.0 altitude_multiplier 1.0 angle_X 0.25
0001: wait 500 ms
else
if or
not Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 50 // 2
then
09F0: restore_behind_camera_autoposition_mode_for_all_car_models
0001: wait 500 ms
end
end
end
end
Kod:
{$CLEO}
0000:
0A95: enable_thread_saving
while true
0001: wait 100 ms
if
Player.Defined($PLAYER_CHAR)
then
if and
Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 49 // 1
then
03C0: 0@ = actor $PLAYER_ACTOR car
0441: 1@ = car 0@ model
09EF: set_behind_camera_autoposition_mode_for_car_model 1@ distance 1.0 altitude_multiplier 1.0 angle_X 0.25
0001: wait 500 ms
else
if or
not Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 50 // 2
then
09F0: restore_behind_camera_autoposition_mode_for_all_car_models
0001: wait 500 ms
end
end
end
end