"Throw" TNT?

Discussion in 'Plugin Development' started by youngbawss22, Nov 29, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    linkrock4

    You can also make it that you throw an arrow and the arrow explodes, that would work too :D
     
  2. Offline

    CeramicTitan

    EDIT: Updated youngbawss22
     
  3. Offline

    youngbawss22

    CeramicTitan I still seem to get the same error in console, and nothing happens.
     
  4. Offline

    CeramicTitan

    did you copy + paste it?
     
  5. Offline

    youngbawss22

    Yes, can you tell me how to upload a file to github (i have an account) i think it will be more useful, if you can see the whole code.
     
  6. Offline

    CeramicTitan



    I will do some testing later

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  7. Offline

    youngbawss22

    I am going to stick with the TNTPrimed instead of the dropped TNT. I feel like it will be much easier. Aside from that, i was wondering if it is possible to throw the TNT from the players location plus an added 1 to the Z coordinate, so it does not get caught on anything. I'm not really sure what to do because i do not know how to implement the getZ + 1.

    Ideas?

    Also i want to make the demoman not take any damage from explosions

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  8. Offline

    devilquak

    Sorry to bring a thread back from the dead like this, but youngbawss22, did you ever get this working?
     
  9. Offline

    youngbawss22

    Actually, my solution was a bit different, but much easier. I used a bow and on projectilehitevent I spawned primed TNT. It was much more fluent than throwing TNT, because when you do throw the TNT, it might be glitchy and will catch on some blocks.

    If you do want to know how to throw the TNT, give me some time and I will post a working code.
     
  10. Offline

    devilquak

    Sorry for bringing this up again, actually, but I found the solution right after I posted this. Thanks for replying anyways, I really appreciate it.
     
Thread Status:
Not open for further replies.

Share This Page