Raised This Month: $ Target: $400
 0% 

Getting origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ewardd
Junior Member
Join Date: Aug 2012
Old 11-02-2013 , 12:02   Re: Getting origin
Reply With Quote #1

Thanks it helped.

I'm using it for creating an entity.
ewardd is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2013 , 12:42   Re: Getting origin
Reply With Quote #2

VelocityByAim has been replaced with velocity_by_aim

You can use this stock :

PHP Code:
GetFrontOrigin(idAddUnits 64Float:origin[3])
{
    
entity_get_vector(idEV_VEC_originorigin);

    
// want eyes origin ? then uncomment following line :
    // origin[2] += entity_get_int(id, EV_INT_flags) & FL_DUCKING ? 12.0 ; 18.0;

    
new Float:velocity[3];
    
velocity_by_aim(idAddUnitsvelocity);

    
// #include < xs >
    
xs_vec_add(originvelocityorigin);

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-02-2013 at 15:59.
ConnorMcLeod is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 11-02-2013 , 12:53   Re: Getting origin
Reply With Quote #3

ummm
GetFrontOrigin(id, AddUnits = 64, Float:origin)
->
GetFrontOrigin(id, AddUnits = 64, Float:origin[3])
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
Reply



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 23:22.


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