Hi,
I've been searching through manialive's documentation, and I didn't find any event for hits, pole captured or eliminations in shootmania storm, can anyone tell me if these events exist, or not ?
Events on in game actions
Moderator: NADEO
Re: Events on in game actions
Manialive has special callback event for Scriptmode. So if the script sends events you can get them using
Unfortunately, Storm default scripts doesn't - even now as we have asked many times - trigger any callbacks. So you have to modify the scripts to emit some signals.
For pole capture you can use following maniascript snipplet for the .script.txt file:
and for armor empty
See Foxcontrol, Smart or MLepp for Storm modified scripts, use them directly or do your own implementations.
Code: Select all
/** Callback function to get Scriptmode Event and parameters
* @var string $event
* @var string $args
*/
public function onModeScriptCallback($event, $args ) {
// do your code here
}
Unfortunately, Storm default scripts doesn't - even now as we have asked many times - trigger any callbacks. So you have to modify the scripts to emit some signals.
For pole capture you can use following maniascript snipplet for the .script.txt file:
Code: Select all
XmlRpc.SendCallback("poleCapture", Players[PlayerId].Login);
Code: Select all
XmlRpc.SendCallback("emptyArmor", Event.Victim.Login);
Who is online
Users browsing this forum: No registered users and 0 guests