roby65 Posted June 2, 2006 Share Posted June 2, 2006 i made a mod that pressing a key, the car explode after 3 seconds, but i want to make that starts a countdown when the car is going to blow, how can i make it?? Link to comment Share on other sites More sharing options...
LMS Posted June 2, 2006 Share Posted June 2, 2006 Hi! i made a mod that pressing a key, the car explode after 3 seconds, but i want to make that starts a countdown when the car is going to blow, how can i make it?? I don't really understand that. Do you want do show e.g. 5,4,3 in your game? Then you must create a new text in your english.gxt (use sagxtedit). Then use them in Main.scm. For example: 00BA: text_styled 'M_FAIL' 5000 ms 1 M_FAIL must change with the name of your text entry. I hope you understand that... LMS Link to comment Share on other sites More sharing options...
roby65 Posted June 2, 2006 Author Share Posted June 2, 2006 excuse me, i'm italian i've done this : :kamikaze20811: $car_kam = actor $PLAYER_ACTOR car00BA: text_styled 'KAM_03' 1000 ms 1 0001:wait 1000 ms00BA: text_styled 'KAM_02' 1000 ms 1 0001:wait 1000 ms00BA: text_styled 'KAM_01' 1000 ms 1 0001:wait 1000 ms020B: explode_car $car_kam0001:wait 500 ms020B: explode_car $car_kam 0001:wait 500 ms020B: explode_car $car_kam 0001:wait 500 ms020B: explode_car $car_kam 0002: jump ££kamikaze but the KAM_03 don't disappear in 1 second but it take much more!! Link to comment Share on other sites More sharing options...
Y_Less Posted June 2, 2006 Share Posted June 2, 2006 Remove the waits if it takes about 2 seconds. Link to comment Share on other sites More sharing options...
ZAZ Posted June 2, 2006 Share Posted June 2, 2006 0811: $car_kam = actor $PLAYER_ACTOR car0004: $time2 = 5000 ;; integer values014E: set_timer_to $time2 type 100D6: if 00038: $time2 == 0 ;; integer values004D: jump_if_false ££Label020B: explode_car $car_kam014F: stop_timer $time201C3: remove_references_to_car $car_kam ;; Like turning a car into any random car CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
roby65 Posted June 3, 2006 Author Share Posted June 3, 2006 when the game arrive to 014E: set_timer_to $time2 type 1 it crashes Link to comment Share on other sites More sharing options...
LMS Posted June 3, 2006 Share Posted June 3, 2006 You can do it so too: 0811: $car_kam = actor $PLAYER_ACTOR car00BC: text_highpriority 'KAM_03' 1000 ms 1; 30001: wait 1000 ms00BC: text_highpriority 'KAM_02' 1000 ms 1; 20001: wait 1000 ms00BC: text_highpriority 'KAM_01' 1000 ms 1; 10001: wait 1000 ms020B: explode_car $car_kam 0001: wait 500 ms020B: explode_car $car_kam 0001: wait 500 ms020B: explode_car $car_kam 0001: wait 500 ms020B: explode_car $car_kam 01C3: remove_references_to_car $car_kam;; Like turning a car into any random car 0002: jump ££kamikaze I tested this and it works. Link to comment Share on other sites More sharing options...
ZAZ Posted June 3, 2006 Share Posted June 3, 2006 when the game arrive to 014E: set_timer_to $time2 type 1 it crashes Not by me. Show your script! CLEO MODS CLEO Script Tutorial 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