Loading...
 

PogamutUT2004


Die and Respawn

Is there a way to make a bot immediately die and respawn as though it had been killed in the game? I don't want to completely stop the bot from running. I just want it to respawn elsewhere.

The reason is that I'm evolving bots, which sometimes results in bad behavior. In certain situations, it seems better to punish the bot by killing and respawning than to waste the entire evaluation being stuck.
Hi Jacob,

I am newbie here but having quick glance through the api I think if you issue this command
this.body.getAction().respawn(); you should get your result as the guys describe it the respawn method kills the bot and allows to reappear at the given location. Give it a shot and see what you get.

P.
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.