Blockland Forums > Modification Help
Special untriggered input event simply does not work
<< < (2/4) > >>
Chrono:
I'm pretty sure it's serverCmdAddEvent
Chrono:
Args seem to be:

client, enabled, input ID, delay, target ID (in order), brick name (if target is named brick), output ID, arg1, arg2, arg3, arg4
Space Guy:
Try packaging SimObject::addEvent instead of fxDTSBrick.

Chrono - This is in the Checkpoint bricks:

--- Code: ---   %obj.enableTouch = true;

   %enabled     = 1;
   %delay       = 0;
   %inputEvent  = "OnPlayerTouch";
   %target      = "Self";
   %outputEvent = "PlaySound";
   %par1        = Beep_Popup_Sound.getId();
   %obj.addEvent(%enabled, %delay, %inputEvent, %target, %outputEvent, %par1);
--- End code ---
Chrono:
I see. That never came up in trace though. :c
Bauklotz:
It didn't? I tried opening events dialog on a default installation, adding "onPlayerTouch -> Client -> CenterPrint -> Hello, World -> 5", typing trace(1); in console, pressing Send, then typing trace(0); in console. ::addEvent did appear.

Anyway, I'll try with SimObject.

EDIT: Changing fxDTSBrick to SimObject (SimObject::addEvent) doesn't work either.
Navigation
Message Index
Next page
Previous page

Go to full version