Page 1 of 1
Bots: Console gets spammed with buy zone warning
Posted: Thu Nov 02, 2017 10:26 pm
by BackRaw
Hi,
is there any way to disable this message when I have removed the func_buyzone entities?
Code: Select all
Terrorist bot spawned outside of a buy zone (-923, -769, 146)
....
Thanks.
Re: Bots: Console gets spammed with buy zone warning
Posted: Thu Nov 02, 2017 10:57 pm
by L'In20Cible
How about not removing the buyzones, but simply turning them off?
Syntax: Select all
for buyzone in EntityIter('func_buyzone'):
buyzone.call_input('Disable')
Re: Bots: Console gets spammed with buy zone warning
Posted: Fri Nov 03, 2017 12:08 am
by BackRaw
L'In20Cible wrote:How about not removing the buyzones, but simply turning them off?
Syntax: Select all
for buyzone in EntityIter('func_buyzone'):
buyzone.call_input('Disable')
I didn't know how :D thanks!
Re: Bots: Console gets spammed with buy zone warning
Posted: Fri Nov 03, 2017 6:55 am
by Ayuto
Otherwise you could also use a OnServerOutput listener:
http://wiki.sourcepython.com/developing ... rveroutput
Re: Bots: Console gets spammed with buy zone warning
Posted: Fri Nov 03, 2017 11:01 pm
by satoon101
I completely forgot about that listener. I need to add that to GunGame. Thanks for the reminder!
Re: Bots: Console gets spammed with buy zone warning
Posted: Sun Nov 12, 2017 8:04 pm
by BackRaw
Thanks for pointing that out.