Is there anyone know how to properly call the function of CBaseAnimating::SetBodyGroup? I attempted to write a code using it and keeps getting Invalid Handle error while running on server.
PHP Code:
public void OnPluginStart()
{
hGameConf = LoadGameConfigFile("index_changer.games");
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "CBaseAnimating::SetBodygroup");
PrepSDKCall_SetReturnInfo(SDKType_Entity, SDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
hIndexchanger = EndPrepSDKCall();
}
any SetBodygroup(int client, int groupindex, int value)
{
return SDKCall(hIndexchanger, client, groupindex, value);
}