I am scritping a Traitor weapon for the Garry´s Mod Gamemode TTT and I am “almost” finished. The function (Primary Attack) is missing. But I cannot find help in the GMod Wiki, so I want to try to find help in this forum. This is want I need:
If the Player do Left-Click with the weapon, this shall happen:
- A Message will be shown up on the screen of each player
- Another Message will be shown up in the chat (visible for each player)
- A Sound file will be played.
- 10 Seconds after the Sound: 4 C4 Bombs shall spawn randomly on the map
- The C4 Bombs shall explode one after another not at the same time (Otherwise the servers will chrash
And one question at the end: Goes this code in the shared.lua ?
Thanks for your help.
PS: I don´t need the full code, but this is my first big script.
Thanks again and have a nice day.