CinthiaBarbie93 Posted May 1, 2018 Share Posted May 1, 2018 (edited) Hi, i'm really noob using Cleo scripts Nonetheless, i started make a simple mod that consist and create a Actor that become in my bodyguard, this actor comes driving his car until parking near to me. My current weapon will be his weapon too: :POLBACK_11wait 0if Player.Defined($PLAYER_CHAR)else_jump @POLBACK_11if $ONMISSION == 0else_jump @POLBACK_11wait 0if and0AB0: key_pressed 690AB0: key_pressed 87else_jump @POLBACK_110470: [email protected] = actor $PLAYER_ACTOR current_weaponModel.Load([email protected])Model.Load(#CELLPHONE)Model.Load(#RANCHER)Model.Load(#CWFYFR1)04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 70.0 0.0 5.002C1: store_to [email protected] [email protected] [email protected] car_path_coords_closest_to [email protected] [email protected] [email protected]04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0 :POLBACK_183wait 0if and Model.Available([email protected]) Model.Available(#CELLPHONE) Model.Available(#RANCHER) Model.Available(#CWFYFR1)else_jump @POLBACK_1830729: AS_actor $PLAYER_ACTOR hold_cellphone 1wait 250003E5: show_text_box 'COWGIRL'wait 25000729: AS_actor $PLAYER_ACTOR hold_cellphone 0wait 100[email protected] = Car.Create(#RANCHER, [email protected], [email protected], [email protected])03CC: enable_car [email protected] stuck_check_distance_to 2.0 time_to 2000[email protected] = Marker.CreateAboveCar([email protected])07E0: set_marker [email protected] type_to 300AE: set_car [email protected] traffic_behaviour_to 2[email protected] = Actor.CreateAsDriver(CivFemale, #CWFYFR1, [email protected])Actor.Health([email protected]) = 500Actor.WeaponAccuracy([email protected]) = 85 Up there all right! but the problem what is driving me crazy its that if i change the Weapon for "#knifecur" or "#Bat" Model.Load(#BAT) Actor.GiveWeaponAndAmmo([email protected], #BAT, 200) When executing the Mod, my game crashed, this always happens, i'm tired changing codelines, simply when i add a Melee weapon my game crashed. It should be mentioned that this not happen with Fire weapons o Any weapon, only with Melee (Knife, Baseball Bat, Katana, Pool cue) Please! i hope your Valuable help =) Edited May 1, 2018 by CinthiaBarbie93 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