Author Topic: Bot VCE Variables  (Read 915 times)

I was thinking about giving bots variables

<var:bot:variable>
variables include:
posx
posy
posz
currentweapon
datablock
health
maxhealth
damage
etc.

So-
Could anyone familliar with bots and adding VCE variables do this?

You can use all <var:player:*> variables with bots.

You can use all <var:player:*> variables with bots.
really? but the  [self][VCEifvalue] <var:pl:whatever> only works with players
Please explain


really? but the  [self][VCEifvalue] <var:pl:whatever> only works with players
Please explain


[onBotTouch] > [Self] > [VCE_ifValue] > [<var:pl:health> == 100]

[onBotTouch] > [Self] > [VCE_ifValue] > [<var:pl:health> == 100]

That is players health -_-

That is players health -_-

So then why does Amade register bot variables on the player?
Code: [Select]
if(!$BotEventsLoaded)
{
if(isFunction("RegisterSpecialVar"))
{
RegisterSpecialVar("Player", "sightrange", "%this.sightrange");
RegisterSpecialVar("Player", "fieldofview", "%this.fov");
RegisterSpecialVar("Player", "fov", "%this.fov");
RegisterSpecialVar("Player", "leashlength", "%this.leashlength");
RegisterSpecialVar("Player", "leash", "%this.leashlength");
RegisterSpecialVar("Player", "aimode", "%this.getAImode()");
}
}

So then why does Amade register bot variables on the player?
Code: [Select]
if(!$BotEventsLoaded)
{
if(isFunction("RegisterSpecialVar"))
{
RegisterSpecialVar("Player", "sightrange", "%this.sightrange");
RegisterSpecialVar("Player", "fieldofview", "%this.fov");
RegisterSpecialVar("Player", "fov", "%this.fov");
RegisterSpecialVar("Player", "leashlength", "%this.leashlength");
RegisterSpecialVar("Player", "leash", "%this.leashlength");
RegisterSpecialVar("Player", "aimode", "%this.getAImode()");
}
}
I know of those- I just wanted the Current weapon one -_-

<var:pl:currentitem>

<var:pl:currentitem>
-_-
<var:pl:currentitem> IS THE PLAYERS CURRENT ITEM

-_-
<var:pl:currentitem> IS THE PLAYERS CURRENT ITEM
it works on bots.
is that hard for you to understand?

-_-
<var:pl:currentitem> IS THE PLAYERS CURRENT ITEM
My point is, the player variables work for the bot variables. Use the events correctly and make the variable target the bot, like so:
[onBotTouch] > [Self] > [VCE_ifVariable] > [<var:player:currentItem> == "Gun"]

-_-
<var:pl:currentitem> IS THE PLAYERS CURRENT ITEM

<var:pl:*> works with bots as they would players.

Why is this guy unable to understand THAT THE BOT IS A PLAYER

My point is, the player variables work for the bot variables. Use the events correctly and make the variable target the bot, like so:
[onBotTouch] > [Self] > [VCE_ifVariable] > [<var:player:currentItem> == "Gun"]
Nope, you gonna use VCE_ifValue

You dont need VCE.
You can use bot events
Ex: onBotSpawn>Bot>SetBotWeapon>Longrange/Closerange>(Weapon name here)

Why is this guy unable to understand THAT THE BOT IS A PLAYER
Nope, you gonna use VCE_ifValue
VCE_ifValue is for numbers.
VCE_ifVariable is for text (aka strings).