Raised This Month: $ Target: $400
 0% 

[ H3LP ] Get aiment current position?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-27-2017 , 15:44   [ H3LP ] Get aiment current position?
Reply With Quote #1

Hello, I'm trying to get the position of a entity that is following a player, but only one second after the player died. I can get the origin but only from where the entity was created and not from where it is currently.

Code:
new Float:origin[3] entity_get_vector(touched, EV_VEC_origin, origin) new entity = create_entity("info_target") entity_set_origin(entity, origin) entity_set_model(entity, facehugger_mask) entity_set_edict(entity, EV_ENT_aiment, touched) entity_set_int(entity, EV_INT_movetype, MOVETYPE_FOLLOW) entity_set_int(entity, EV_INT_solid, 0) ExecuteHamB(Ham_Killed, touched, toucher, 0) set_task(1.0, "get_mask_origin", entity)
Code:
public get_mask_origin(entity) { new Float:origin[3] entity_get_vector(entity, EV_VEC_origin, origin) }
__________________









Last edited by CrazY.; 06-27-2017 at 15:46.
CrazY. is offline
 



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


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