Bierbuikje Posted April 5, 2009 Share Posted April 5, 2009 Hello again. I have a question about a smoke effect. 1. How to add smoke to a car? I try to when an actor is driving that smoke is coming from his car. But it won't work and it crashes the game all the time. Is there a way to add this? This is the code I use: 066B: [email protected] = attach_particle "SMOKE_FLARE" to_car [email protected] with_offset 0.0 -1.0 0.0 flag 1 Thanks. Bierbuikje Link to comment Share on other sites More sharing options...
Dutchy3010 Posted April 5, 2009 Share Posted April 5, 2009 It doesn't crash when I try it with that opcode. Are you sure that the crash isn't because of the rest of the code? Perhaps you can post it? This is the code I tested: :STARTthread 'START'Model.Load(#TAHOMA)038B: load_requested_models:START_ALOADwait 10ifModel.Available(#TAHOMA)jf @[email protected] = Car.Create(#TAHOMA, 457.5014, -1827.497, 5.659498)066B: [email protected] = attach_particle "SMOKE_FLARE" to_car [email protected] with_offset 0.0 -1.0 0.0 flag 1064C: make_particle [email protected] visible It looks like this: DYOM - Create, play, share! Link to comment Share on other sites More sharing options...
Bierbuikje Posted April 5, 2009 Author Share Posted April 5, 2009 This is my code. {$CLEO .CS}:1jump @Begin:Beginwait 0if Actor.DrivingVehicleType($PLAYER_ACTOR, #FREEWAY)else_jump @Check2wait 0jump @Smoke:Check2jump @Begin:Smoke00D9: [email protected] = actor $PLAYER_ACTOR car // mission only 066B: [email protected] = attach_particle "SMOKE_FLARE" to_car [email protected] with_offset 0.0 -1.0 0.0 flag 1jump @Begin 0A93: end_custom_thread Link to comment Share on other sites More sharing options...
Dutchy3010 Posted April 5, 2009 Share Posted April 5, 2009 00D9: [email protected] = actor $PLAYER_ACTOR car // mission only You can use this opcode only for missions, you have to use: 03C0: [email protected] = actor $PLAYER_ACTOR car You also have to add the following opcode, because else you can't see the particle: 064C: make_particle [email protected] visible DYOM - Create, play, share! 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