Quote:
Originally Posted by Arkshine
If you need the origin of an attachment, try EngFunc_GetAttachment.
new Float:Origin[3], Float:Angles[3];
engfunc( EngFunc_GetAttachment, Id, Attachment, Origin, Angles );
|
I tried with below code, and cs crashed, did I use error attachmentID or anything else I did wrong?
//amxx 1.8.1 all needed inc included
new wid=fm_get_user_weapon_entity(playerID)
//playerID is 1, i am the only one in server
//wid is returned, such as 240, 241, etc
new Float:Origin[3], Float:Angles[3];
engfunc( EngFunc_GetAttachment, wid, attachmentID, Origin, Angles);
//crash at this line
//I try attachmentID with 0, 1, 2, all same result