• 0

    posted a message on Third Person Shooter (TPS) engine - Download if you need one

    howdy, new here... anyways I'm close to getting automatic fire for the marine but I'm running into a snag with regards to damage... I update a boolean variable to true when the mouse is clicked down, and false when the mouse is clicked up, then running your Shoot trigger - altering the event to a periodic timer, and adding the condition (the boolean variable) Shooting == true (I also of course altered the actions for a marine). The result is when I hold the mouse, the marine does his attack animation and attack sound continuously, and on releasing the mouse he stopped... However, no damage is done ( not due to wrong custom values - was working on semi auto) and red text pops up saying:

    "Trigger Error in 'lib1_gt_Shoot_Func': Parameter out of bounds in 'CameraGetPitch' (value: -1 , min: 0, max: 15)

    I thought there might be a problem with where I was aiming but it doesn't matter where I aim.

    on a less important side note, on a map I made to test, the victory script pops up even though there are hostiles (player 15) on the map

    Posted in: Triggers
  • To post a comment, please or register a new account.