How to make entity arc
1 Attachment(s)
I need to make an entity arc from one player origin to another player origin...
as seen in the picture below.. (exuse my 1337 painting skills :) ) [img] http://img292.**************/img292/130/arc6te.gif [/img] the code can be downloaded at the bottom... thnx --Zenith |
arc as in a line, like the Beam in hookmod type thing except arced. How Long Should It Last? what is the purpose for it in your script?
|
i think since its coin mod that he is going to try and get someone to drop coins in an arch fashion
|
ah, i get it...
|
nobody knows how :(
|
yeah, ppl do, its not too hard, set_user_velocity(entity,vector) this is not hard to do. Just find the difference in the 2 locations of the player and the end of the arc then set the velo to that and add some on the Z side so that it goees up and arcs and it will fly.
module: engine Funcwiki Contact me for additional help, +karma 8) |
Thnx chronic..i will give you karma as soon as it lets me....
but..i dont get what to do for the vectors part :? ( p.s. i cant contact you unless my mom is gone...she will get mad and think your a hacker or something :/, i still have you on AIM though... ) |
ok, look, im gonna give u an example of what u want to do.
You have a player at point A which is 0 0 0 You have a coin at point B which is 100 200 0 if you want the coin to fly to the person: Code:
new Float:vector[3]Code:
new Float:origin[3] |
thnx man...
|
| All times are GMT -4. The time now is 14:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.