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)
}
__________________