Raised This Month: $12 Target: $400
 3% 

SetBodyGroup call function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Newbiedienloan
Junior Member
Join Date: May 2018
Location: France
Old 07-12-2020 , 12:15   SetBodyGroup call function
Reply With Quote #1

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(hGameConfSDKConf_Signature"CBaseAnimating::SetBodygroup");
    
PrepSDKCall_SetReturnInfo(SDKType_EntitySDKPass_Pointer);
    
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
    
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
    
hIndexchanger EndPrepSDKCall();
}

any SetBodygroup(int clientint groupindexint value)
{
    return 
SDKCall(hIndexchangerclientgroupindexvalue);

Newbiedienloan is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-12-2020 , 16:26   Re: SetBodyGroup call function
Reply With Quote #2

You don't have to do it, there is a sendprop m_nBody.
Change it via https://sm.alliedmods.net/new-api/entity/SetEntProp
PropType:rop_Send
kadet.89 is offline
Send a message via Skype™ to kadet.89
Newbiedienloan
Junior Member
Join Date: May 2018
Location: France
Old 07-12-2020 , 17:31   Re: SetBodyGroup call function
Reply With Quote #3

Quote:
Originally Posted by kadet.89 View Post
You don't have to do it, there is a sendprop m_nBody.
Change it via https://sm.alliedmods.net/new-api/entity/SetEntProp
PropType:rop_Send
Thanks a bunch
Newbiedienloan is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode