Jump to content

Shamal Spectate CRASH!


Pie015

Recommended Posts

I created this script in a couple of minutes and checked over it and it all looks fine to me but when I start my game is crashes!

 

 

{$CLEO .cs}//---------------MAIN------------0000::0wait 00AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to [email protected](1@)if not Actor.Driving($PLAYER_ACTOR)jf @0if0137:   car 0@ model == #SHAMALjf @0if00E1:   player 0 pressed_key 8jf @0if0205:   actor $PLAYER_ACTOR near_car 0@ radius 12.0 12.0 12.0 flag 0 jf @0Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)Actor.Angle($PLAYER_ACTOR) = 9@0679: put_camera_on_car 0@ with_offset 0.0 2.0 -2.0 rotation 0.0 0.0 0.0 0.0 2 01B4: set_player $PLAYER_CHAR can_move 0:1wait 0if orCar.Wrecked(0@)Actor.Dead($PLAYER_ACTOR)jf @2jump @0:2wait 0if00E1:   player 0 pressed_key 15jf @2ifnot Car.Wrecked(0@)jf @3Car.StorePos(0@, 6@, 7@, 8@)Camera.Restore_WithJumpCut()Actor.PutAt($PLAYER_ACTOR, 6@, 7@, 8@)01B4: set_player $PLAYER_CHAR can_move 1jump @0:3wait 0Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)Actor.Angle($PLAYER_ACTOR) = [email protected]_WithJumpCut()01B4: set_player $PLAYER_CHAR can_move 1jump @0

 

Link to comment
Share on other sites

I fixed it nevermind! All i need is a spectate opcode I tried 0679 but it zooms right in, i need a as-if-driving-a-car-camera opcode

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.