Skip to content

Instantly share code, notes, and snippets.

@d4l3k
Created April 3, 2012 00:52
Show Gist options
  • Save d4l3k/2288392 to your computer and use it in GitHub Desktop.
Save d4l3k/2288392 to your computer and use it in GitHub Desktop.
// t_loc is Target Location
// target is Target Key
list details = llGetObjectDetails(target,[OBJECT_POS,OBJECT_VELOCITY]);
t_loc = llList2Vector(details,0);
t_loc += llList2Vector(details,1)*llVecDist(t_loc,llGetPos())/bullet_speed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment