aldrinjohnom Posted June 18, 2018 Share Posted June 18, 2018 I just started my first cleo script on san andreas PC about helicopter transport. But I just got one big problem since my knowledge on cleo and mathematics are not that big, my case was: - I have an helicopter with an enterable interior - When CJ($PLAYER_ACTOR) is inside the interior(collided with the helicopter) and he presses key T + L, CJ will go on turretmode ON THE SAME SPOT WHERE HE IS LOCATED. My first Try was: /// [email protected] = helicopter = bla bla if and 0AB0: key_pressed 85 // T 0AB0: key_pressed 76 // L 0547: actor $PLAYER_ACTOR colliding_with_car [email protected] then 00a0: store_actor $PLAYER_ACTOR position_to [email protected] [email protected] [email protected] 0470: [email protected] = actor $PLAYER_ACTOR current_weapon 0464: put_actor $PLAYER_ACTOR into_turret_on_car [email protected] at_car_offset 0.0 0.0 0.0 position 2 shooting_angle_limit 360.0 with_weapon [email protected] // actor will enter the turretmode stace.... The offset 0.0 0.0 0.0 was just a dummy offset that temporary put cj's position on that offset 08C7: put_actor $PLAYER_ACTOR at [email protected] [email protected] [email protected] dont_warp_gang // reupdate the position of cj to his last position end But since "TURRETMODE" automatically updates the ACTOR's POSITION INTO THE OFFSET POSITION OF THE HELICOPTER, EVERYTIME HIS POSITION CHANGES. Neglecting the Command of opcode 08C7 to update CJ's position since CJ's position is locked at the specific offsets of the helicopter/car. Any Work-around to do this? Please Help me! Thank you Guys. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now