Author Topic: Bot Events  (Read 6655 times)

this is simple all you need to do is
onbotspawn>bot>setweapon>*whatever you want*
onbotspawn>bot>setbotAIproperties>defendsself
(dont forget to chose the long/short range type of weapon)
this will make you bot walk around with a gun and if it is attacked it will fight back against only the person who attacked them

also if you want the bot to only pull out the gun when it is attacked -
onbotdamaged>bot>setbotweapon>*weapon*

2. I want to incorporate "fire teams" onto my server. Special bots that you can hire (up to 2) to follow you around and help you fight (until they die). I would imagine that it would take both VCE and Bot events to accomplish this, but I haven't got a clue where to start. Any takers? (If this is too advanced, that's fine. My server doesn't have to have it)

Those "Fire Teams" of yours can be done by eventing
On Activate(the bot spawn) Set vehicle [NONE]
(Delay 1) On activate/ set vehicle/ [Standard bot]
on bot spawn/ set bot weapon/ (Weapon with no delay time)
on bot spawn/ set bot ai properties/ follow player [-1 or really high number]
on bot killed/ set vehicle/ [NONE]

As for a limit of two... I've got no idea how to do this. You could put only two spawns or something. But that would limit what weapons your bots could weild. It may not work, but hey, worth a shot.

You know what? I think I might know how to do this! Thank you so much! I'll go try it out and see if it works.

I realized that I will not be able to do fire teams because the bots will not attack the enemies, and they can't get in vehicles. That's ok though.

Anyways, I'm pretty confused about making my shops. I want to have them be vendors, and you just say the item's number in the chat to buy that item. I know you need the onChatMessage event, but I can't remember how to make VCE check what your guy said. For example, let's say I have a shop that sells 3 items. All you have to do is say, "3" and you should buy the item if you have enough money. For some reason, this doesn't work. Is there anyway to make shops that you just say the item to buy it?

OnActivate>self>VCE_IfValue> <var:pl:lastmsg> == (texthere) | 0 1
OnVariableTrue>Player>additem>(weapon)
----------------------------------------------------------------------------------
I think thats how you do it, i dont know right now off the top of my head, and that might keep on giving the player items until he/she says something else... OR
-----------------------------------------------------------------------------------
Onactivate>self>VCE_RetroCheck>Lastplayermsg == (texthere) | 0 1
Onvariabletrue>player>Additem>(weapon)

ignore my last post....

onactivate>self>VCE_Retrocheck>Lastplayermsg>==>(msg) | 0 1
onvariabletrue>client>VCE_ifvalue>Coin == (cost) | 1 3
onvariabletrue>player>additem>(weapon)
onvariabletrue>client>VCE_Modvariable>Coin>Subtract>(cost)
------------------------------------------------------------------------------------
This should work :)

ignore my last post....

onactivate>self>VCE_Retrocheck>Lastplayermsg>==>(msg) | 0 1
onvariabletrue>client>VCE_ifvalue>Coin == (cost) | 1 3
onvariabletrue>player>additem>(weapon)
onvariabletrue>client>VCE_Modvariable>Coin>Subtract>(cost)
------------------------------------------------------------------------------------
This should work :)

Awesome! Thank you very much. I'll give it a shot.