Raised This Month: $51 Target: $400
 12% 

Solved have entity move where i aim at.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BANDIT228
Member
Join Date: Sep 2017
Old 07-19-2018 , 14:53   have entity move where i aim at.
Reply With Quote #1

public AIM(id)
{
if (is_valid_ent(id))
{
new Float:Velocity[3]
VelocityByAim(pev(id,pev_owner), 1000, Velocity)
entity_set_vector(id, EV_VEC_velocity, Velocity)
new Float:NewAngle[3]
entity_get_vector(id, EV_VEC_v_angle, NewAngle)
entity_set_vector(id, EV_VEC_angles, NewAngle)
}
}

currently i use that...........dont find any other good examples....

i am sure i need to use "get user origin"

thing is....i spawn a entity form another player...........that entity should fly to the position i aim at.

right now i only takes my angles.....

but i want it that i look at the ground and it flys there.

anyone has a snippet for me?

Last edited by BANDIT228; 07-20-2018 at 05:52.
BANDIT228 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 11:41.


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