Author Topic: Brick can't find the function OnActivate  (Read 582 times)

function fxDTSbrick::onActivate(%brick)
{
 parent::onActivate(%brick);

  if(%brick.getDatablock() $= "brickGrassData")
  {
  %brick.delete();
 }
}

Clicking my brick ingame activates, but at the same time, returns an error saying that it couldn't find the function OnActivate, and then never deleting the brick :(

EDIT:Seems I just had to package it
« Last Edit: October 22, 2011, 05:52:48 AM by soba »