• Getting the direction of an entity, how is it done?
    9 replies, posted
Just wondering how you would point on object toward a vector. Sorry if this a really stupid question. [editline]11:23AM[/editline] Not GetAngles()
No, that is not what I am asking, hold on.
[QUOTE=Fatman55;24570222]No, that is not what I am asking, hold on.[/QUOTE] Technically speaking, it is, unless you rephrase your question. GetForward is the (forward) direction of an entity.
Its a stupid thing made with MSPaint, but oh well. [IMG]http://img255.imageshack.us/img255/2782/thingg.png[/IMG]
entity.SetAngles, (Vector - entity.GetPos()):Angle()
If that works, then you have saved me quite a bit of time. :smile:
[QUOTE=Fatman55;24570506]If that works, then you have saved me quite a bit of time. :smile:[/QUOTE] It will work, the same concept is applied in my aimbot.
If you want to point it at another entitiy, [b][url=http://wiki.garrysmod.com/?title=Entity.PointAtEntity]Entity.PointAtEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] is useful.
[QUOTE=Lexic;24570642]If you want to point it at another entitiy, [B][URL="http://wiki.garrysmod.com/?title=Entity.PointAtEntity"]Entity.PointAtEntity [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B] is useful.[/QUOTE] Thanks, that is what I needed, also, thank you for the other code FlapJack. I WILL GIVE HEARTS!
Sorry, you need to Log In to post a reply to this thread.