Author Topic: Event - OnBotFirstDamaged  (Read 419 times)

*Inspired by OnPlayerFirstTouch


Input for when you damage a bot for the first time with any weapon.

Ex. "You just forgeted with the wrong bot!"

Hitting him after the first hit does not trigger this event. Only the first hit. After the bot respawns the OnBotFirstDamaged Event should work again.

It should not interfere with any OnBotDamaged events on the bot, as they should come AFTER the OnBotFirstDamaged event.

This is the functionality i'm looking for.

I don't make many S&R Threads so please honor this one!


could be done with the current bot events and defaults
just set the line to on when the bot spawns, then off when damaged

could be done with the current bot events and defaults
just set the line to on when the bot spawns, then off when damaged
yeah so itd look something like (i have never used the bot events, excuse me if i get something wrong lol)
0 onbotdamaged namedbrick(spawn) toggledeventenabled [0 1]
1 onbotdamaged (whatever you put here to make him say stuff, again havnt messed with bot events)
2 onbotspawn namedbrick(spawn) toggleeventenabled [0 1]

edit: you might want to mess around with the default events, your avatar claims that youre good with vce, but you dont seem to know the reg ones.
« Last Edit: July 15, 2012, 05:20:24 PM by CopBlock »

Code: [Select]
0 onbotspawn self seteventenabled 1 2  [-]
1 onbotdamaged client centerprint saystuff
2 onbotdamaged self seteventenabled 1 2  []

Thats the basis for the first hit. Now an example of how to make it do stuff after first hit.
Code: [Select]
0 x onbotspawn self seteventenabled 0 1 2 3 [-]
1 x onbotspawn self seteventenabled 4 [ ]
2 x onbotdamaged client centerprint "Hit for the first time!"
3 x onbotdamaged self toggleeventenabled 2 3 4
4 - onbotdamaged client centerprint "Hit after the first time!"
« Last Edit: July 15, 2012, 09:20:11 PM by Evar678 »

I know, i figured it out, thanks for the input though guys.

Right after the first poster i figured it out. I just had a blank mind at the time, sorry guys!

Next time ill actually think about it before making a topic xD


locking