-MagicMate- Posted June 24, 2011 Share Posted June 24, 2011 Hey Everyone! I'd like to write a CLEO script that allows me to remove the front and/or the rear bumper from a car. Here's the script: // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$VERSION 3.1.0027} {$CLEO .cs} //-------------MAIN--------------- 0000: NOP :NONAME_2 wait 0 if Player.Defined($PLAYER_CHAR) jf @NONAME_2 if Actor.DrivingVehicleType($PLAYER_ACTOR, #HERMES) Actor.DrivingVehicleType($PLAYER_ACTOR, #HUSTLER) if and 0AB0: key_pressed 109 jf @NONAME_2 03C0: [email protected] = actor $PLAYER_ACTOR car 0689: set_car [email protected] remove_componentA (0-5) visible_effect_flag 1 jump @NONAME_50 :NONAME_50 wait 0 if Actor.DrivingVehicleType($PLAYER_ACTOR, #HERMES) Actor.DrivingVehicleType($PLAYER_ACTOR, #HUSTLER) if and 0AB0: key_pressed 107 jf @NONAME_50 068A: set_car [email protected] repair_componentA (0-5) wait 0 jump @NONAME_2 The script works (I tried it with doors) but I don't know what to write when I want to remove a bumper. Is there an ID for bumpers? Or should I rewrite something in the script? Please help me! Thanks! Link to comment Share on other sites More sharing options...
ZAZ Posted June 24, 2011 Share Posted June 24, 2011 Hey Everyone! I'd like to write a CLEO script that allows me to remove the front and/or the rear bumper from a car. Here's the script: The script works (I tried it with doors) but I don't know what to write when I want to remove a bumper. Is there an ID for bumpers? Or should I rewrite something in the script? Please help me! Thanks! no success, only codes which have effect to front and/or the rear bumper are: 0730: car [email protected] damage_component 50730: car [email protected] damage_component 6 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
-MagicMate- Posted June 24, 2011 Author Share Posted June 24, 2011 ZAZ, thank you for the answer. I could make what I wanted with the opcode you showed me. 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