Author Topic: Have bots press a certain button event  (Read 1327 times)

You know how some items require buttons to do something? I want bots to do that to.

[Onbotspawn]->[Bot]->[SetButton]->[Letter/number here]->[Buttonpresstime](How much time till they press the button again.)

You don't need "button" events for this, all we need is Bot Events and use events
all we need is a botActivate event so we can make him click the button
like so:

onBotSpawn > Bot > GoToBrick > button
onBotSpawn > Bot > lookAtBrick > button (so he clicks IT, not the air)
(delay depending on length of travels) onBotSpawn > Bot >botActivate

You don't need "button" events for this, all we need is Bot Events and use events
all we need is a botActivate event so we can make him click the button
like so:

onBotSpawn > Bot > GoToBrick > button
onBotSpawn > Bot > lookAtBrick > button (so he clicks IT, not the air)
(delay depending on length of travels) onBotSpawn > Bot >botActivate

I meant the buttons as in the keys on your keyboard.

I meant the buttons as in the keys on your keyboard.
Huh? I don't think this is really possible without client/server side mods. People also have different keys of how things work, how would this be simple?

I'm not understanding what you really want and how it is useful.

playgesture>mov_activate will let a bot actually activate any brick with an onactivate event.

I meant the buttons as in the keys on your keyboard.

what
Oh, you want bots or bricks to press keys?
As in auto-controlling you?
Or making them move in directions?
This could be a bit tedious, but I think I get what you're saying

For example,The bot needs to reload and it can't cause it doesn't know how to press the button,Like the Letter "R". When we press "R",it can reload. So I want someone to make a event for them to press any button like "R" or any letter on the key board.

If I'm not getting making sense tell me.

This won't work correctly. Bots don't have keyboards, silly.

For example,The bot needs to reload and it can't cause it doesn't know how to press the button,Like the Letter "R". When we press "R",it can reload. So I want someone to make a event for them to press any button like "R" or any letter on the key board.

If I'm not getting making sense tell me.

...Yeah it doesn't really work that way. Events are processed server-side, while all keybinds are stored client-side. There is no interaction between the two unless you make a client-side event to send all your keybinds to the server.
And if it did, it would be terrible because of how indirect and convoluted it is
Just make events that actually do what you want them to do. If you want a reload event, request a reload event.
« Last Edit: July 03, 2014, 01:06:30 AM by Headcrab Zombie »

The whole thing would be a clusterforget anyways

just add an event that.. makes bots try to activate their light?

just add an event that.. makes bots try to activate their light?
I think theres a event like that but it doesn't work for the default bots.