Raised This Month: $ Target: $400
 0% 

get attachment origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-20-2012 , 06:49   get attachment origin
Reply With Quote #1

PHP Code:
public get_attachment_origin(entattachmentFloat:Origin[3], Float:Angles[3])
{
       
engfunc(EngFunc_GetAttachmententattachmentOriginAngles)

This code is work. it gets Origin of attachment but get with Angles is 0.... Always is 0. if angles = 0.0 - 0.0 - 0.0. It's work great. but if i rotate player => angles change. it get origin with old angles (default angles: 0.0 - 0.0 - 0.0). How to get origin of attachment with custom angles ?

I want to get for entity. Code and example please

Last edited by dias; 04-20-2012 at 06:56.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-20-2012 , 07:24   Re: get attachment origin
Reply With Quote #2

pev(attachment,pev_angles,Angles) ?
__________________
The functional way is the right way
GordonFreeman (RU) is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 04-20-2012 , 10:02   Re: get attachment origin
Reply With Quote #3

attachment is a number. Not entity

Last edited by dias; 04-20-2012 at 10:02.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
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 07:47.


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