Page 1 of 1
Events on in game actions
Posted: 20 Mar 2013, 22:20
by beauchette
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 ?
Re: Events on in game actions
Posted: 21 Mar 2013, 07:19
by reaby
Manialive has special callback event for Scriptmode. So if the script sends events you can get them using
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);
and for armor empty
Code: Select all
XmlRpc.SendCallback("emptyArmor", Event.Victim.Login);
See Foxcontrol, Smart or MLepp for Storm modified scripts, use them directly or do your own implementations.