by the way, does the bos/cob scripts have a random number generator?
Throw away units
Moderator: Moderators
- MrSpontaneous
- Posts: 242
- Joined: 09 Sep 2005, 22:39
I saw that, but don't you mean that you could have a unit fire a weapon during its death throws, or immidiatly after being built, as a unit could already be told to do something after it fires a shot, or certain number of shots with a variable
.
by the way, does the bos/cob scripts have a random number generator?
by the way, does the bos/cob scripts have a random number generator?
Yes, take the random number and store it in a static var, decrease it once per FireWeapon call and make the AimWeapon function return false if the var is zero, then start a script after the value has reached zero that will reset it after the time you want to pass between bursts. The weapon fbi wouldn't give it any burst and have the rate of fire you want it to have during the burst.
