|
I've made a mod that is soppoused to fire missiles but it's not working like i planned. I'm new here so i don't know many stuff. Here's The Code:
create_thread @NONAME_16 create_thread @NONAME_17
/........................... :NONAME_16 wait 0 if Player.Defined($PLAYER_CHAR) else_jump @NONAME_16 if 00DE: player $PLAYER_CHAR driving_vehicle_type #SKIMMER else_jump @NONAME_16 03C1: $1336 = player $PLAYER_CHAR car
:NONAME_16_47 wait 0 if 00E1: key_pressed 0 4 else_jump @NONAME_16_47 $1337 = Object.Init(#RCBOMB, -1109.615, 1330.097, 20.372) 035C: place_object $1337 relative_to_car $1336 offset 0.0 30.0 0.0
:NONAME_16_114 wait 0 Object.CollisionDetection($1337) = True Object.ToggleInMovingList($1337) = True Object.StorePos($1337, $1338, $1339, $1340) 02CE: $1341 = ground_z $1338 $1339 $1340 0086: $1342 = $1339 // floating-point values only 0061: $1342 -= $1341 // floating-point values if not $1342 > 0.5 // floating-point values else_jump @NONAME_16_114 Object.RemoveReferences($1337) 020C: create_explosion_with_radius 7 at $1338 $1339 $1340 020C: create_explosion_with_radius 7 at $1338 $1339 $1340 0565: create_temporary_explosion_fire $1338 $1339 $1340 2 0565: create_temporary_explosion_fire $1338 $1339 $1340 1 0565: create_temporary_explosion_fire $1338 $1339 $1340 1 020C: create_explosion_with_radius 7 at $1338 $1339 $1340 020C: create_explosion_with_radius 7 at $1338 $1339 $1340 0565: create_temporary_explosion_fire $1338 $1339 $1340 2 0565: create_temporary_explosion_fire $1338 $1339 $1340 1 0565: create_temporary_explosion_fire $1338 $1339 $1340 1 0503: create_rappel_at $1338 $1339 $1340 0503: create_rappel_at $1338 $1339 $1340 0503: create_rappel_at $1338 $1339 $1340 Object.Destroy($1337) jump @NONAME_16
:NONAME_17 if 80DC: not player $PLAYER_CHAR driving $1336 else_jump @NONAME_17_30 wait 0 jump @NONAME_17
:NONAME_17_30 Marker.Disable($1343) wait 500 jump @NONAME_17 end_thread
|