wat
Do not make posts like this in Coding Help.
Add event to brick: (source: Brick_CheckPoint)
%enabled = 1;
%delay = 0;
%inputEvent = "OnPlayerTouch";
%target = "Self";
%outputEvent = "PlaySound";
%par1 = Beep_Popup_Sound.getId();
%brick.addEvent(%enabled, %delay, %inputEvent, %target, %outputEvent, %par1, %par2, %par3, %par4);
The other stuff:You can easily find this out by using the
dump() method.
brickgroup_999999.getObject(0).dump(); //plant a brick, add events to it, and then run this code
There are fields for all of the event properties (enabled, etc). There is also a %brick.clearEvents() method.