public class Action extends BotCommands
act, worldView
agent, controller, eventBus, log
Constructor and Description |
---|
Action(UT2004Bot agent,
Logger log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
pick(UnrealId id)
If the items are set to be picked up manualy, this command can be used to
pick up the items.
|
void |
playAnimation(String animName)
This command can be used to play some available bot animation.
|
void |
respawn()
This function will kill the bot and force him to respawn.
|
void |
respawn(ILocated location)
This function will kill the bot and force him to respawn.
|
void |
respawn(ILocated location,
Rotation rotation)
This function will kill the bot and force him to respawn.
|
void |
startCombo(String desiredCombo)
Causes bot to perform desired adrenaline combo (only if it has enough
adrenaline usually >= 100).
|
void |
throwWeapon()
Throws out bots current weapon (just if he is allowed to throw this kind
of weapon out - some weapons cannot be thrown e.g.
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString
public void startCombo(String desiredCombo)
desiredCombo
- Holds the class name of the desired adrenaline combo (can be
xGame.ComboBerserk, xGame.ComboDefensive, xGame.ComboInvis or
xGame.ComboSpeed).public void throwWeapon()
public void respawn()
respawn(ILocated)
,
respawn(ILocated,Rotation)
public void respawn(ILocated location)
location
- Bot will be respawned at this location (if he can). Be
carefull may kill players this way. Usefull when wanted to
specify NavPoint you want the bot to have respawned at.respawn()
,
respawn(ILocated,Rotation)
public void respawn(ILocated location, Rotation rotation)
location
- Location where the bot will be respawned.rotation
- Initial rotation of the bot.respawn()
,
respawn(ILocated)
public void pick(UnrealId id)
id
- UnrealId of the item we want to pick up.public void playAnimation(String animName)
animName
- name of the animation we want to runCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.