Raised This Month: $ Target: $400
 0% 

Origin of an entity?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 03-01-2006 , 20:31   Origin of an entity?
Reply With Quote #1

I've been searching around and I can't seem to find it, but how can I get the origin of a non-player entity by entid?

Thanks
---
This is what I have so far:

Code:
public item_c4_detonator() {     new arg[32]     read_argv(1,arg,31)         new id = str_to_num(arg)         new entid = find_ent_by_owner(id,"info_target",id)         new Float:vector[3]     //entity_get_vector(entid,EV_VEC_origin,vector)     get_brush_entity_origin(entid,vector)         new origin[3]     format(origin,0,"%f",vector[0])     format(origin,1,"%f",vector[1])     format(origin,2,"%f",vector[2])     basic_explosion(origin)         return PLUGIN_HANDLED }
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



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 20:17.


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