Author Topic: VCE Event: Bot --> setBotTarget  (Read 662 times)

I need an event for an RPG I am working on. All attacks to a bot generate threat level, saved to a VCE variable called "threat". The bot targets the player with the highest threat when damaged. If a player with the VCE variable "role" assigned to the client equals to "tank" then they generate more threat.

An example of threat generation would be below:

  • [0] onBotDamaged -> Client -> VCE_ifVariable("role", "==", "Tank", "")
  • [0] onVariableTrue -> Player -> VCE_modVariable("threat", "Add", 50)
  • [0] onVariableFalse -> Player -> VCE_modVariable("threat", "Add", 5)


What I need is an event that targets the player with the highest VCE variable threat, so this would be added.
  • [0] onBotDamaged -> Bot -> setBotTarget -> highestThreat


It would be a huge help if anyone could make this, because I need it badly.


This sounds like a neat idea but couldn't you also just do OnBotDamaged > Bot >FollowPlayer
I like your suggestion better but that could work too I think