xnotoriousss Posted December 24, 2008 Share Posted December 24, 2008 im trying to create explosion in the angle the camera is pointing at but i cant seem to find an opcode that does it, cant find store camera angle or something... maybe u could make it shoot an object and the object explodes o.o i dunno Link to comment Share on other sites More sharing options...
james227uk Posted December 24, 2008 Share Posted December 24, 2008 068E: get_camera_target_point_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 It gets the way the camera is facing I think. Don't yell at me if it doesn't work Link to comment Share on other sites More sharing options...
ZAZ Posted December 24, 2008 Share Posted December 24, 2008 (edited) I could it only do with 068D: get_camera_position_to [email protected] [email protected] [email protected] and 0604: get_Z_angle_for_point [email protected] [email protected] store_to [email protected] its not easy and it works only by default camera (moveable with mouse) important: 0604: get_Z_angle give the z angle of the 2 parameters ([email protected] [email protected]) in relation to the game center 0.0 0.0 so it needs to bring the player position and the camera position also in relation to the game center with calculation its hard to explain, look to the script 04C4: create_coordinate [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR offset 0.0 0.0 0.0068D: get_camera_position_to [email protected] [email protected] [email protected] 0087: [email protected] = [email protected] // floating-point values only0087: [email protected] = [email protected] // floating-point values only0087: [email protected] = [email protected] // floating-point values only0063: [email protected] -= [email protected] // floating-point values0063: [email protected] -= [email protected] // floating-point values0063: [email protected] -= [email protected] // floating-point values0013: [email protected] *= -2.0 // floating-point values0013: [email protected] *= -2.0 // floating-point values0013: [email protected] *= -2.0 // floating-point values005B: [email protected] += [email protected] // floating-point values 005B: [email protected] += [email protected] // floating-point values005B: [email protected] += [email protected] // floating-point values0063: [email protected] -= [email protected] // floating-point values0063: [email protected] -= [email protected] // floating-point values0063: [email protected] -= [email protected] // floating-point values0013: [email protected] *= 5.0 // floating-point values0013: [email protected] *= 5.0 // floating-point values0013: [email protected] *= 5.0 // floating-point values0604: get_Z_angle_for_point [email protected] [email protected] store_to [email protected] 0173: set_actor $PLAYER_ACTOR Z_angle_to [email protected] BTW. I used it in mods like in Flying carpet for steering in air and for the missile gun in PimpmyCar(alpha) http://zazmahall.de/CLEO.htm Edited December 24, 2008 by ZAZ 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