Hi people
I am trying to add a feature to my mutator that tells a bot to use a specific weapon, all i could dig up is this (example for enforcer):
weap = bot.findinventorytype(class'enforcer');
bot.pendingweapon = weap;
bot.changedweapon();
i also tried:
bot.adjustdesirefor(weap);
and
bot.favoriteweapon = weap.class;
with those code lines, the bot switches to the enforcer only for a couple of seconds and then brings back the weapon it was holding before.
help anyone?
I am trying to add a feature to my mutator that tells a bot to use a specific weapon, all i could dig up is this (example for enforcer):
weap = bot.findinventorytype(class'enforcer');
bot.pendingweapon = weap;
bot.changedweapon();
i also tried:
bot.adjustdesirefor(weap);
and
bot.favoriteweapon = weap.class;
with those code lines, the bot switches to the enforcer only for a couple of seconds and then brings back the weapon it was holding before.
help anyone?