Blockland Forums > Modification Help

Pre Events

Pages: << < (3/6) > >>

PNetwork2011:


--- Quote from: jes00 on June 28, 2011, 08:01:45 AM ---I don't get the %par1

--- End quote ---
that's gotta be Parameter 1

PNetwork2011:

And basically you need this
%outputEvent
%inputEvent

PNetwork2011:

And for the whole thing you need this,

--- Code: ---
function brick[b]BRICKNAME[/b]Data::onPlant(%data, %obj)
{
   %obj.enableTouch = true;

   %enabled     = 1;
   %delay       = 0;
   %inputEvent  = "[b]INPUTEVENTHERE"[/b];
   %target      = "[b]TARGEt,SELF,NAMEDBRICK,WHATVER[/b]";
   %outputEvent = "[b]OUTPUTEVENTHERE[/b]";
   %par1        = ; //You may need this line or no, it depends.
   %obj.addEvent(%enabled, %delay, %inputEvent, %target, %outputEvent, %par1); //Obvious
}

--- End code ---


Xalos:


--- Quote from: Ephialtes ---Lol @ desperate to prove himself good at scripting ^^
--- End quote ---


jes00:

Can I have multiple OnPlant functions? or should they be OnPlantTwo and OnPlantThree ect

Pages: << < (3/6) > >>

Go to full version