A unit is building something- meanwhile it gets attacked. It has a a weapon, yet the weapon refuses to fire.
Hoko mentioned one of the call-ins - but i couldnt find a description for it on the wikki.
https://springrts.com/wiki/Lua:Callins
Help and advice would be welcome
How to get Building Units to fire on attackers?
Moderator: Moderators
Re: How to get Building Units to fire on attackers?
Think you might be referring to https://springrts.com/wiki/Lua:Callins# ... erHoldFire but not sure it does what you want
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: How to get Building Units to fire on attackers?
Thanks google frog :)
Also thank you FLOZi, you where right after all.
Just seems - strange decision to put this logic in a gadget call. Who wrote this and why this approach?
Also thank you FLOZi, you where right after all.
Just seems - strange decision to put this logic in a gadget call. Who wrote this and why this approach?
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: How to get Building Units to fire on attackers?
I wondered this too, feels like it ought to be a unitDef property to me.
Re: How to get Building Units to fire on attackers?
the problem is, it shouldnt exist at all.
You can allow or deny fire within the weapon calls. And you can acess a unitscript from gadgets. So there are ways allready existing to use both approaches
You can allow or deny fire within the weapon calls. And you can acess a unitscript from gadgets. So there are ways allready existing to use both approaches
Re: How to get Building Units to fire on attackers?
yup, it's probably there to save people from editing lots of .bos files or somethingPicassoCT wrote:the problem is, it shouldnt exist at all.
You can allow or deny fire within the weapon calls. And you can acess a unitscript from gadgets. So there are ways allready existing to use both approaches
Re: How to get Building Units to fire on attackers?
The whole configuration thing is difficult and i can understand anyone who wants to reduce tags - in particular on behavior that consists of multiple tags interacting. Better gamedev to code rule state machines, then to have them internal .
Another nightmare is behaviourristics of fast units. As in planes movement behaviour when comandereed into dangerzones. But i digress..
Another nightmare is behaviourristics of fast units. As in planes movement behaviour when comandereed into dangerzones. But i digress..