Pie015 Posted October 20, 2010 Share Posted October 20, 2010 My game crashes when I press TAB 3044 = Ciggerate on_bone 1 = Torso Object.Create(1@, 3044, 0.0, 0.0, 0.0):1wait 0if 0AB0: key_pressed 9jf @109A0: actor $PLAYER_ACTOR attach_object 1@ with_offset 0.0 0.0 0.0 on_bone 1 16 perform_animation "NULL" IFP_file "NULL" time -1 Object.CollisionDetection(1@) = FalseMarker.CreateAboveObject(2@, 1@) Link to comment https://gtaforums.com/topic/461428-game-crashes/ Share on other sites More sharing options...
yair1221 Posted October 20, 2010 Share Posted October 20, 2010 is it a CLEO? Link to comment https://gtaforums.com/topic/461428-game-crashes/#findComment-1060169578 Share on other sites More sharing options...
Pie015 Posted October 20, 2010 Author Share Posted October 20, 2010 Yes Link to comment https://gtaforums.com/topic/461428-game-crashes/#findComment-1060169582 Share on other sites More sharing options...
yair1221 Posted October 20, 2010 Share Posted October 20, 2010 show me the entire script Link to comment https://gtaforums.com/topic/461428-game-crashes/#findComment-1060169584 Share on other sites More sharing options...
BnB Posted October 20, 2010 Share Posted October 20, 2010 (edited) {$CLEO}{TESTED}0000:while true wait 0 if 0AB0: key_pressed 9 then Object.Create(1@, 3044, 0.0, 0.0, 0.0) Object.CollisionDetection(1@) = False Marker.CreateAboveObject(2@, 1@) 070A: AS_actor $PLAYER_ACTOR attach_to_object 1@ offset 0.0 0.0 0.0 on_bone 1 16 perform_animation "NULL" IFP_file "NULL" time 0 break end end0A93: //kill the thread The position of cigar sucks!! Yair why do you want the entire script? Edited October 20, 2010 by BnB Link to comment https://gtaforums.com/topic/461428-game-crashes/#findComment-1060169612 Share on other sites More sharing options...
yair1221 Posted October 20, 2010 Share Posted October 20, 2010 a.why on earth to use a while true in such case? b.i just thought there was more to it guess you can make it alot more simple using a normal loop {$CLEO}thread 'whocares':cwait 0if0ab0: 9jf @c1@ = object.create(3044, 0.0, 0.0, 0.0)0382: set_object 1@ collision_detection 02@ = marker.createaboveobject(1@[im not even sure if such thing will work while attaching to bone, sounds stupid either way, try removing it, see if thats the problem])070A: AS_actor $PLAYER_ACTOR attach_to_object 1@ offset 0.0 0.0 0.0 on_bone 1 16 perform_animation "NULL" IFP_file "NULL" time 00a93: Link to comment https://gtaforums.com/topic/461428-game-crashes/#findComment-1060169623 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