Quote:
Originally Posted by NightlyRaine
Using nb_move_to_cursor and nb_move_to_position seems to crash when a bot is spawned in when using this amazing extension.
|
Thanks for report. Fixed
Quote:
Originally Posted by NightlyRaine
And I for the life of me can not figure out how to use or what this is even supposed to do, Am somewhat new to messing with plugins at times. Any help on what it is supposed to do and how to use would be amazing!
|
It will give every action that passed entity contains. There is no way to legally create ArrayList via extension so that's the only way how can you pass multiple objects without creating your own handle type.
How to use
PHP Code:
#pragma semicolon 1
#pragma newdecls required
#include <sdktools>
#include <actions>
public void OnPluginStart()
{
RegConsoleCmd("sm_actions", sm_actions);
}
public Action sm_actions( int client, int args )
{
int target = GetClientAimTarget(client, false);
if ( target == -1 )
return Plugin_Handled;
BehaviorAction.Actions(target, ActionsIterator);
return Plugin_Handled;
}
public void ActionsIterator( BehaviorAction action )
{
char name[ACTION_NAME_LENGTH];
action.GetName(name, sizeof name);
PrintToChatAll("%s", name);
}
Quote:
Originally Posted by NightlyRaine
And GetName() doesn't seem to work when getting the name of a result action like
|
Just tested and seems to be working fine. Make sure you are not trying to access null action or show code so i can replicate issue.
__________________