The array is used to store a "stack" of messages that will be printed every X seconds. I need to be able to clear the array, so that only new text can be printed. I hope I make sense.
I'm trying to copy the V2 explosion effect. However, looking into obj_team2.scr I can't figure out what part of the coding produces this effect. Here's the code (cleaned up):
I believe firedelay has to do with the interval between bullets being fired. For example, if the firedelay of an MG is set to 0.1, it will shoot 10 bullets per second.
For non-automatic weapons, it represents how long you have to wait til you can shoot again. If you were to set the firedelay of the ...
I have an array, that gets populated throughout my script. I want to be able to "erase" the array (size goes back to 0 (empty) or -1 (non-existant)). How can I either delete or "empty" my array?
Note: it would not be looping through it setting it to 0 or "".
---------------------------------------------------------------------------------- Thompson SMG: Max Eff. Range is 50 yds with a muzzle velocity of 805 ft/s. (.45 ACP round)
1- Map has two bombs. 2- Attacking team sets one bomb. 3- Everyone in attacking team dies. 4- Round continues til bomb blows up, even though the attacking team is already dead, and even though defending team still win even after that bomb blows up. It's a bug in mohaa... it happens on V2 too ...
Yup, I tried removing and everything still works. One problem I am having though (and can't figure it out) is this:
1- Map has two bombs. 2- Attacking team sets one bomb. 3- Everyone in attacking team dies. 4- Round continues til bomb blows up, even though the attacking team is already dead, and ...
Oh thanks. I will make that change into my coding. Thanks for putting the time and effort into it.
I actually never liked my way of doing it, I just couldn't think of any other way. Probably due to my lack of knowledge... I didn't know what waitframe did or how to use it... but now I see it.
Clears it up a bit, but I'm still not sure how I'd use it. But because I don't need it at any cost at this point, I'll pass. Maybe latter on I'll run some tests to answer my own questions.
Though not exactly how I wanted it first, I got my thingie working in a very nice way which suffices. Thought ...