Author Topic: Event: OnMinigameReset  (Read 786 times)

Basically an event that would have Named Brick and Minigame as targets, for resetting objective-based zombie games that have respawning off, and other challenges.

However, minigames can't have input events. :(
Also you cannot get rid of named brick targets.

This could cause lag if it ends up triggering for every brick in the server or something like that.

It'd be cool if we could directly create events for Minigame objects themselves - have an extra GUI and have things like onClientScore, onMinigameReset, etc.

That would be a great idea. I was planning on making AiPlayer events aswell, just not anytime soon.

Edit:
Instead of onClientScore, how about onClientScoreUp and onClientScoreDown?

AIPlayer events?

AIPlayers currently use the Player events. Since the Target for the onBotTouch events type is "Player" (for the Bot), your events wouldn't show up there. That would be useless.

No, I mean like input events you put on a bot, not a brick.
Like onRespawn, onSightPlayer, onDamage and more.

Ah, I see. It might need changes to the Events GUI to get it to work, though. (for both the minigame one and AIPlayer one)

Yeah I heard someone talking about something similar. They said all the brick inputs were mixed with the other object inputs.
This was quite awhile ago, and I have bad memory. So I'm not sure.

Update on events research:

Although it is possible to register input events for different classes on both the server, and the client, the event gui cannot change object classes it assigns and reads inputs for. It seems to only use the fxDtsBrick class, and is unchangable from as far as I can see. I checked $ vars, dynamic fields on the events gui, and tried messing around with clientCmds, and nothing worked so far.