Jump to content

Welcome to Omni-bot Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Camp goal status

- - - - - camp goal statusl

  • Please log in to reply
7 replies to this topic

#1
VargaTom

VargaTom

    Junior Member

  • Members
  • PipPipPip
  • 92 posts
  • LocationNorth of Hungary

Hi Omniboters! It is possible to find out the status of a particular CAMP GOAL  (attack/defend/camp/snipe) while playing?



#2
Mateos

Mateos

    Senior Member

  • Members
  • 1,100 posts
  • LocationFrance

By status, do you mean enabled/disabled, or properties like stand/crouch/prone?


  • VargaTom likes this

mateos1.png


#3
VargaTom

VargaTom

    Junior Member

  • Members
  • PipPipPip
  • 92 posts
  • LocationNorth of Hungary

By status, do you mean enabled/disabled, or properties like stand/crouch/prone?

I would like to know for example is there a bot on DEFEND_old_city_wall_4 position.



#4
Mateos

Mateos

    Senior Member

  • Members
  • 1,100 posts
  • LocationFrance

May I ask what is your goal? Once a camp goal is occupied, the other bots go for other available camp goals


mateos1.png


#5
palota

palota

    Senior Member

  • Administrators
  • 556 posts
goal = GetGoal("DEFEND_old_city_wall_4 position");
foreach (bot in BotTable) {
    if (bot.DistanceTo(goal) < 50) {
        //goal is occupied
    }
}


  • VargaTom likes this

#6
Mateos

Mateos

    Senior Member

  • Members
  • 1,100 posts
  • LocationFrance

Oh you can specify the field inside the query string? Neat


mateos1.png


#7
VargaTom

VargaTom

    Junior Member

  • Members
  • PipPipPip
  • 92 posts
  • LocationNorth of Hungary

I was wondering if the bots can know if this position is already occupied well there is some way I can find out too



#8
Mateos

Mateos

    Senior Member

  • Members
  • 1,100 posts
  • LocationFrance

I believe there's an InUse property set to 1 for CAMP goals to be sure there isn't several bots on one spot, but the InProgress (when unoccuppied how many bots can go for it) is probably higher; they can be modified with Utility functions but there's probably a way to check the value, just like other properties


mateos1.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users