Game Development Community

AIBot Event Parameters

by Donald Teal · in Game Mechanics Kit · 01/31/2010 (11:57 pm) · 1 replies

I have been playing around with the events in the AIbot editor. but I cant seem to find a list of parameters that go with the events.

For example there is the onDeath event but what parameters are usable with that event. I know I can develope custom scripts but I want to see what is default there and built up from there

#1
02/05/2010 (7:45 am)
It very easy to understand.
Please take a look at aiBot.cs

In function AiBotData::onDisabled(%this, %obj, %state)
you can find a line
%obj.signal("onDeath");

This means tha onDeath event doesn't have any parameters except %this, which is a pointer to AiBot itself.
It reflect lower in the template for the GMK editor.
setTemplateEvent("AiBot", "onDeath", "", "%this - AiBot");



You can also look at function AiBotData::onNewEnemy(%this, %obj)
Event caller looks like this
%obj.signal("onAlert", %obj.getEnemy());

So this event will have another parameter for the enemy.

setTemplateEvent("AiBot", "onAlert", "", "%this - AiBot. %arg0 - who cause alert.", 1);