cloud_strife94 Posted March 5, 2013 Share Posted March 5, 2013 (edited) I was making the animation of spider-man ( ) but i have some problems: I started modificating an animation of 'ped.ifp', I saved it as new animation (for being sure it works, I opened it in 3d studio max and it worked fine) and after it I created the cleo script. {$CLEO .cs} :Airswing 03A4: name_thread 'Airswing' :AIRSWING_11 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @AIRSWING_11 00D6: if 0AB0: key_pressed 8//-----------------key = Backspace 004D: jump_if_false @AIRSWING_11 04ED: load_animation "webswing" :AIRSWING_54 0001: wait 0 ms 00D6: if 04EE: animation "webswing" loaded 004D: jump_if_false @AIRSWING_54 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0 0001: wait 1000 ms 0812: AS_actor $PLAYER_ACTOR perform_animation "ARRESTgun" IFP_file "webswing" 1.0 loopA 1 lockX 1 lockY 1 lockF 1 time -2 // versionB :AIRSWING_141 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @AIRSWING_141 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 2.0 2.0 00D6: if and 8AB0: not key_pressed 8 0611: actor $PLAYER_ACTOR performing_animation "ARRESTgun" 004D: jump_if_false @AIRSWING_221 0002: jump @AIRSWING_141 :AIRSWING_221 0792: disembark_instantly_actor $PLAYER_ACTOR 04EF: release_animation "webswing" 0001: wait 1000 ms 0002: jump @AIRSWING_11 When I try to select the backspace button it never goes, hope you can help me, thanks in advance. P.S.=sorry for my bad english. P.S.=it's for San Andreas. Edited March 5, 2013 by cloud_strife94 Link to comment Share on other sites More sharing options...
ZAZ Posted March 5, 2013 Share Posted March 5, 2013 modificating an animation of 'ped.ifp', I saved it as new animationWhen I try to select the backspace button it never goes, hope you can help me, thanks in advance. you want to run perform_animation "new animation" IFP_file "ped" ? but your script use this perform_animation "ARRESTgun" IFP_file "webswing" CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
cloud_strife94 Posted March 5, 2013 Author Share Posted March 5, 2013 modificating an animation of 'ped.ifp', I saved it as new animationWhen I try to select the backspace button it never goes, hope you can help me, thanks in advance. you want to run perform_animation "new animation" IFP_file "ped" ? but your script use this perform_animation "ARRESTgun" IFP_file "webswing" the animation 'ARRESTgun' is not from 'ped.ifp' but 'webswing.ifp'. How can I correct the script? Link to comment Share on other sites More sharing options...
cloud_strife94 Posted March 8, 2013 Author Share Posted March 8, 2013 (edited) for trying to understand the error I tryed the example-script that Zaz made in his cleo tutorial, this one: 'Animation in air needs to move the actor with opcode 083C: and to use animation code 0812: with -2 as last parameter Script below let the player swimming in air by key_press' CODE {$CLEO .cs} :Airswim 03A4: name_thread 'Airswim' :AIRSWIM_11 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @AIRSWIM_11 00D6: if 0AB0: key_pressed 8//-----------------key = Backspace 004D: jump_if_false @AIRSWIM_11 04ED: load_animation "SWIM" :AIRSWIM_54 0001: wait 0 ms 00D6: if 04EE: animation "SWIM" loaded 004D: jump_if_false @AIRSWIM_54 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0 0001: wait 1000 ms 0812: AS_actor $PLAYER_ACTOR perform_animation "SWIM_BREAST" IFP_file "SWIM" 1.0 loopA 1 lockX 1 lockY 1 lockF 1 time -2 // versionB :AIRSWIM_141 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @AIRSWIM_141 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 2.0 2.0 00D6: if and 8AB0: not key_pressed 8 0611: actor $PLAYER_ACTOR performing_animation "SWIM_BREAST" 004D: jump_if_false @AIRSWIM_221 0002: jump @AIRSWIM_141 :AIRSWIM_221 0792: disembark_instantly_actor $PLAYER_ACTOR 04EF: release_animation "SWIM" 0001: wait 1000 ms 0002: jump @AIRSWIM_11 but this one never works. Edited March 8, 2013 by cloud_strife94 Link to comment Share on other sites More sharing options...
ZAZ Posted March 8, 2013 Share Posted March 8, 2013 for trying to understand the error I tryed the example-script that Zaz made in his cleo tutorial, this one:'Animation in air needs to move the actor with opcode 083C: and to use animation code 0812: with -2 as last parameter Script below let the player swimming in air by key_press' CODE {$CLEO .cs} :Airswim 03A4: name_thread 'Airswim' :AIRSWIM_11 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @AIRSWIM_11 00D6: if 0AB0: key_pressed 8//-----------------key = Backspace 004D: jump_if_false @AIRSWIM_11 04ED: load_animation "SWIM" :AIRSWIM_54 0001: wait 0 ms 00D6: if 04EE: animation "SWIM" loaded 004D: jump_if_false @AIRSWIM_54 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0 0001: wait 1000 ms 0812: AS_actor $PLAYER_ACTOR perform_animation "SWIM_BREAST" IFP_file "SWIM" 1.0 loopA 1 lockX 1 lockY 1 lockF 1 time -2 // versionB :AIRSWIM_141 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @AIRSWIM_141 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 2.0 2.0 00D6: if and 8AB0: not key_pressed 8 0611: actor $PLAYER_ACTOR performing_animation "SWIM_BREAST" 004D: jump_if_false @AIRSWIM_221 0002: jump @AIRSWIM_141 :AIRSWIM_221 0792: disembark_instantly_actor $PLAYER_ACTOR 04EF: release_animation "SWIM" 0001: wait 1000 ms 0002: jump @AIRSWIM_11 but this one never works. why not? did you forget to press backspace? works fine for me remove all your other scriptmods and try again but why do you need it to test your anim in the air? take this simple anim test script from the tutorial: press backspace to play Tai Chi anim then come back again {$CLEO .cs}:IFP_PARKthread 'IFPPARK':IFP_PARK_1wait 0if0256: player $PLAYER_CHAR definedjf @IFP_PARK_1if0AB0: key_pressed 8//-----------------key = Backspacejf @IFP_PARK_104ED: load_animation "PARK":IFP_PARK_5wait 0if04EE: animation "PARK" loadedjf @IFP_PARK_50812: AS_actor $PLAYER_ACTOR perform_animation "Tai_Chi_Loop" IFP_file "PARK" 1.0 loopA 1 lockX 1 lockY 1 lockF 0 time -1 // versionB0001: wait 1000 ms:IFP_PARK_7wait 0if0256: player $PLAYER_CHAR definedjf @IFP_PARK_12if and8AB0: not key_pressed 8//-----------------key = Backspace80E1: not player 0 pressed_key 15jf @IFP_PARK_12jump @IFP_PARK_7:IFP_PARK_120792: disembark_instantly_actor $PLAYER_ACTOR04EF: release_animation "PARK"0001: wait 1000 msjump @IFP_PARK_1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
cloud_strife94 Posted March 9, 2013 Author Share Posted March 9, 2013 I opened sunny builder as administrator (maybe I need because of windows 7) and the tai chi with the swim scripts work fine but my script never works. 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