sci4me Posted November 17, 2010 Share Posted November 17, 2010 Ok, i made a turret cleo to go with my map but it dont work. vode: {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'TURRET' 03BC: 19@ = create_sphere_at -1052.4929 362.6892 14.0172 radius 1.2 :TURRET_11wait 0 if Player.Defined($PLAYER_CHAR)else_jump @TURRET_11 Model.Load(#MINIGUN):TURRET_56wait 0 if and Model.Available(#MINIGUN)else_jump @TURRET_56:turret_24 if and00E1: player 0 pressed_key 13 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -1052.4929 362.6892 14.0172 radius 1.0 1.0 3.5 else_jump @turret_24:inturret04F4: put_actor $PLAYER_ACTOR into_turret_on_object 5@ offset_from_object_origin 0.0 0.0 2.0 orientation 0 both_side_angle_limit 360.0 lock_weapon 38 :turret1if00E1: player 0 pressed_key 13 else_jump @turret465: remove_actor $PLAYER_ACTOR from_turret_mode Model.Destroy(#MINIGUN)jump @TURRET_11 Link to comment https://gtaforums.com/topic/463297-turret-script/ Share on other sites More sharing options...
yair1221 Posted November 18, 2010 Share Posted November 18, 2010 try that for start... im just in a hurry, i didnt read the script throughly...just a flap... {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'TURRET' :turretsphere03BC: 19@ = create_sphere_at -1052.4929 362.6892 14.0172 radius 1.2 Model.Load(#MINIGUN)038B: load_requested_models :turret_24 wait 0if and00E1: player 0 pressed_key 13 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -1052.4929 362.6892 14.0172 radius 1.0 1.0 3.5 jf @turret_24:inturret03BD: destroy_sphere 19@ actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)5@ = object.Create(3065, 1@, 2@, 3@)0750: set_object 5@ visibility 00392: make_object 5@ moveable 004F4: put_actor $PLAYER_ACTOR into_turret_on_object 5@ offset_from_object_origin 0.0 0.0 2.0 orientation 0 both_side_angle_limit 360.0 lock_weapon 38 wait 1000:turret1wait 0if00E1: player 0 pressed_key 13 jf @turret1465: remove_actor $PLAYER_ACTOR from_turret_mode Model.Destroy(#MINIGUN)wait 1000jump @turretsphere Link to comment https://gtaforums.com/topic/463297-turret-script/#findComment-1060208332 Share on other sites More sharing options...
BnB Posted November 18, 2010 Share Posted November 18, 2010 (edited) You are not dead yair! Topic: :TURRET_56wait 0if and Model.Available(#MINIGUN)else_jump @TURRET_56 You dont need and :turret1if00E1: player 0 pressed_key 13else_jump @turret Label turret does not exist But you wanted this you should have put wait :turret1if00E1: player 0 pressed_key 13else_jump @turret1 5@ = object.Create(3065, 1@, 2@, 3@) WTF Basket ball 038B Is USELESS* *gta sa @yair Put a model.available check! Edited November 18, 2010 by BnB Link to comment https://gtaforums.com/topic/463297-turret-script/#findComment-1060208632 Share on other sites More sharing options...
yair1221 Posted November 18, 2010 Share Posted November 18, 2010 yeah, i aint dead yet, you can mourn...you have about 70 years before you can celebrate my death... i dunno, 038B: never failed me, in a few scripts, it crashed when i removed it so i prefer it over an "available" loop, alot shorter... 5@ = object.Create(3065, 1@, 2@, 3@) yeah, it was the first object i thought of it isnt really important, he just wanted to put the actor on a turret, doesnt really matters the object... :turret1if00E1: player 0 pressed_key 13else_jump @turret i fixed that in the script mixed a few labels, removed others, but its basically the same thing... Link to comment https://gtaforums.com/topic/463297-turret-script/#findComment-1060208661 Share on other sites More sharing options...
BnB Posted November 18, 2010 Share Posted November 18, 2010 (edited) I explained sci4me mistakes! I didn't say that 038B don'tcause crashes but it is useless! 038B: never failed me, in a few scripts, it crashed when i removed it WTF Edited November 18, 2010 by BnB Link to comment https://gtaforums.com/topic/463297-turret-script/#findComment-1060208724 Share on other sites More sharing options...
Bennington Posted November 18, 2010 Share Posted November 18, 2010 EPIC FAIL?? Link to comment https://gtaforums.com/topic/463297-turret-script/#findComment-1060209131 Share on other sites More sharing options...
yair1221 Posted November 19, 2010 Share Posted November 19, 2010 you couldnt compile, right? yeah, it was an opcode lacking the first digit...you brought it missing in your original script 465: remove_actor $PLAYER_ACTOR from_turret_mode should be 0465: remove_actor $PLAYER_ACTOR from_turret_mode anyway, your script: {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'TURRET' :turretsphere03BC: 19@ = create_sphere_at -1052.4929 362.6892 14.0172 radius 1.2 Model.Load(#MINIGUN)038B: load_requested_models :turret_24 wait 0if and00E1: player 0 pressed_key 13 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -1052.4929 362.6892 14.0172 radius 1.0 1.0 3.5 jf @turret_2403BD: destroy_sphere 19@ actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)5@ = object.Create(3065, 1@, 2@, 3@)0750: set_object 5@ visibility 00392: make_object 5@ moveable 004F4: put_actor $PLAYER_ACTOR into_turret_on_object 5@ offset_from_object_origin 0.0 0.0 0.0 orientation 0 both_side_angle_limit 360.0 lock_weapon 38 wait 1000:turret1wait 0if00E1: player 0 pressed_key 13 jf @turret10465: remove_actor $PLAYER_ACTOR from_turret_mode wait 1000jump @turretsphere Link to comment https://gtaforums.com/topic/463297-turret-script/#findComment-1060209453 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