You have to package player::activateStuff
function ServerCmdbot(%cl)
{
new aiplayer(FRANK)
{
datablock = playerStandardArmor;
position = vectoradd(_botbrick.getPosition(),"0 0 0.4"); // pops the bot on-top of a brick called botbrick
isFrank = true;
};
}
function ServerCmdChatMessage(%cl) //works fine
{
FRANK.setMoveDestination("0 12 0");
%cl.bottomPrint("\c2LOOK AT ME, I CAN WALK.",5);
}
package yourPackage
{
function Player::Activatestuff(%obj)
{
Parent::Activatestuff(%obj);
%ray = containerRaycast(%obj.getEyePoint(),vectorAdd(%obj.getEyePoint(),vectorScale(%obj.getEyeVector(),3)),$Typemasks::playerObjectType,%obj);
if(isObject(%col=firstWord(%ray)) && %col.isFrank)
{
//Do things
%col.setmoveObject(%obj);
}
}
};
activatePackage(yourpackage);