Updated
PHP Code:
All arguments passed to the plugin now undergo strict type checking, as opposed to regular pass-by-value as it was before (This caused CBaseEntity not to be converted to an entity index for SelectTargetPoint)
Some arguments of the callback prototypes are no longer strict to a specific type
Now this works
Code:
methodmap MyNextBot
{
public void SayMyName()
{
PrintToServer("MyNextBot");
}
}
public void OnActionCreated(BehaviorAction action, int actor, const char[] name)
{
action.SelectTargetPoint = SelectTargePoint;
}
public Action SelectTargePoint(BehaviorAction action, MyNextBot nextbot, int entity, float vec[3])
{
nextbot.SayMyName();
return Plugin_Continue;
}
__________________