Raised This Month: $ Target: $400
 0% 

CodeSnippet : Aiming @ Entities


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Anpheus
Senior Member
Join Date: Aug 2004
Old 09-12-2004 , 00:08  
Reply With Quote #10

To make the aiming angle dependent, simply make it so that when you do the "Float:AimOffset[3]" make it only two variables.

See, the angle vector for an entity is, like you typed, two floats.


So simply pass +/- longitude +/- latitude. Add that number to the 'h-aim' and 'v-aim'

Since h-aim and v-aim are vectors that represent points on a sphere, adding or subtracting changes the angle.
Anpheus 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 17:16.


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