ASSS Questions - flag question Hakaku - Sat Jul 25, 2009 4:00 pm Post subject: flag question
1. Is it possible to force/give a player a flag? If so, how could this be done?
2. In turf style flagging, is there a setting that allows the flag to be neutralized when the arena is created? (whenever I use fg_turf, the previous state of the flags, even after the arena is destroyed, seems to be remembered)
D1st0rt - Sat Jul 25, 2009 4:39 pm Post subject:
1. Use the FlagInfo struct with Iflagcore's SetFlags function. You'll want state = FI_CARRIED and carrier = that player.
2. You should be able to use SetFlags again but with carrier = NULL and freq = -1
Hakaku - Sat Jul 25, 2009 7:04 pm Post subject:
Thanks D1st0rt. If I did the following, would it work? What exactly does int count do?
As for the second one, I was hoping for just a setting, but oh well.
Hakaku - Mon Jul 27, 2009 9:15 pm Post subject:
Ok, well I'll answer my own question, it worked. But why is it that everytime I try to specify a flag location (fi.x/fi.y), it doesn't? The flag just warps sporadically according to the flag radius...
Edit: nevermind, I just have to not specify the flag state whatsoever, but rather I need to use the flag frequency (-1) instead to make sure that the flag is still neutral. Seems odd to me to do it this way.