Search

Search found 8 matches

by berryblizzard
21 Mar 2012, 16:59
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

Re: How to get units to shoot multiple weapons

Thank you! I've since added in all the weapon 2 functions. I will give this a try.
by berryblizzard
21 Mar 2012, 16:33
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

Re: How to get units to shoot multiple weapons

Yes that's what I want. I thought that was what you might be doing because of the bool but I was thrown off but the weapon 3 code you had. Do you know of a way that I can toggle between 3 weapons?
by berryblizzard
21 Mar 2012, 16:23
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

Re: How to get units to shoot multiple weapons

I was just about to post about that. There will be a weapon 2. I just have 1 and 3 in there right now because I'd like to get them working first, but also keeping in mind the fact that there will be a weapon 2.
by berryblizzard
21 Mar 2012, 16:16
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

Re: How to get units to shoot multiple weapons

http://pastebin.com/h2LA5VaK

There's the link. Now it's firing the first weapon and I get why it's doing that. However, I want the third weapon to be the default weapon when the first two are not available. How would I do that?
by berryblizzard
21 Mar 2012, 15:08
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

Re: How to get units to shoot multiple weapons

No I don't understand why that's necessary. If you could explain it that would be great. I did change it to a bool in the game and am having the exact same problem.
by berryblizzard
20 Mar 2012, 23:41
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

Re: How to get units to shoot multiple weapons

Thanks for the help. I have been trying to implement it without creating a gadget. Here is the code I have for that portion: local function RestoreAfterDelay(unitID) -- Defines a local funtion to wait a bit, then move the turret back to how it was originally. Sleep(RESTORE_DELAY) if(waterGunAllowed ...
by berryblizzard
20 Mar 2012, 18:24
Forum: Game Development
Topic: How to get units to shoot multiple weapons
Replies: 18
Views: 1337

How to get units to shoot multiple weapons

I am wondering how to get a unit to shoot from a different weapon depending on what weapon is equipped. This is what I have at the moment: function script.QueryWeapon1() return flare end function script.AimFromWeapon1() return flare end function script.AimWeapon1(heading, pitch)--(weaponID, heading,...
by berryblizzard
10 Feb 2012, 22:30
Forum: Game Development
Topic: Units not attacking
Replies: 3
Views: 367

Units not attacking

My units will not attack each other. I believe that for some reason they are viewing each other as on the same team but I am not sure how. The player controlled character can injure the other character by hitting near the other character but they cannot actually aim at the other character. I will at...

Go to advanced search