Raised This Month: $ Target: $400
 0% 

get entity origin[solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 07-08-2007 , 03:07   get entity origin[solved]
Reply With Quote #1

how can i get an entity's origin ?

i already found the entity

new origin[3]
.... what goes here?

thx
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME

Last edited by kp_uparrow; 07-10-2007 at 17:09.
kp_uparrow is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 07-08-2007 , 03:15   Re: get entity origin
Reply With Quote #2

Engine:
engine.inc
http://svn.tcwonline.org/viewvc.cgi/...dx&view=markup
engine_const.inc
http://svn.tcwonline.org/viewvc.cgi/...dx&view=markup


Fakemeta:
fakemeta.inc
http://svn.tcwonline.org/viewvc.cgi/...dx&view=markup
fakemeta_const.inc
http://svn.tcwonline.org/viewvc.cgi/...dx&view=markup

Code:
//Engine
//entity_get_vector(iIndex, iKey, Float:vRetVector[3])
new Float:origin[3]
entity_get_vector(entid, EV_VEC_ORIGIN, origin)

//Fakemeta
new Float:origin[3]
pev(entid, pev_origin, origin)
stupok is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 07-08-2007 , 13:39   Re: get entity origin
Reply With Quote #3

with engine i got EV_VEC_ORIGIN not defined error

the fakemeta example worked totally fine, thanks!
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 07-08-2007 , 14:33   Re: get entity origin
Reply With Quote #4

Try with lowercase 'origin'...
EV_VEC_origin
hlstriker is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 07-08-2007 , 14:38   Re: get entity origin
Reply With Quote #5

naa... i used fakemeta and its working
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-09-2007 , 21:56   Re: get entity origin
Reply With Quote #6

how dare you try to get someone to use engine hlstriker!! YOU WILL PAY!
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 07-10-2007 , 01:06   Re: get entity origin
Reply With Quote #7

i love engine, especially the steam engine (i hate the steam engine)

does it really matter? they say fakemeta uses nothing unless its doing something
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-10-2007 , 10:32   Re: get entity origin
Reply With Quote #8

engine is less efficient that fakemeta, and we are trying to fade it out. Especially me and regalis...
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Ownage
BANNED
Join Date: Jul 2007
Location: I don't know
Old 07-10-2007 , 12:29   Re: get entity origin
Reply With Quote #9

how inefficient, i cant see real difference

engine seems to be easier to understand, fakemeta just goes pev pev pev lol
Ownage is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-10-2007 , 12:38   Re: get entity origin
Reply With Quote #10

#Off Topic
Here depends...some users prefer engine others fakemeta , but fakemeta use less CPU and is easy to understand (for me) ! So... <3 Roln...
__________________
Still...lovin' . Connor noob! Hello
Alka 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 21:34.


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