Pie015 Posted November 30, 2011 Share Posted November 30, 2011 Ok, this is a useless passenger mod I made because of the driver of the car does not drive ANYWHERE. But I made this script again but instead of making the player enter he warps into the car and tada its as if it never happend and it works but for this script it does not. {$CLEO .cs}//-----------MAIN-----------$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR):1 // Checks if the player presses G or somethingwait 0if andnot Actor.Driving($PLAYER_ACTOR)Player.Defined($PLAYER_CHAR)00E1: player 0 pressed_key 8jf @10AB5: store_actor $PLAYER_ACTOR closest_vehicle_to [email protected] closest_ped_to [email protected]([email protected])if0205: actor $PLAYER_ACTOR near_car [email protected] radius 12.0 12.0 12.0 flag 0jf @105CA: AS_actor $PLAYER_ACTOR enter_car [email protected] passenger_seat -1 10000 ms046C: [email protected] = car [email protected] driver :2 // Makes sure that the driver of the car does not exist, if he/she does thenwait 0 // it jumps to :3ifnot Actor.Defined([email protected])jf @3if andActor.InCar($PLAYER_ACTOR, [email protected])Car.Defined([email protected])Player.Defined($PLAYER_CHAR)jf @1Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])jump @1:3 // Read the text at :2wait 0if andActor.InCar($PLAYER_ACTOR, [email protected])Car.Defined([email protected])Player.Defined($PLAYER_CHAR)Actor.Defined([email protected])jf @1Car.SetToNormalDriver([email protected])Car.SetDriverBehaviour([email protected], FollowRoad)Car.RemoveReferences([email protected])Actor.RemoveReferences([email protected])jump @1 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