sinbad,
@sinbad@mastodon.gamedev.place avatar

I couldn't find any in-built feature in UE to make an AIController "lead the target" so that you could shoot to where a target is going to be if it's moving, so I implemented that in SUSS. You just have to tell it what the velocity of your projectile is, and it'll treat the usual "SetFocus" behaviour as meaning you want the agent to face ahead of where the target is travelling so shots will connect more often

Short video of an enemy shooting the player, "leading the target" so they shoot towards where the player is going to be

sinbad,
@sinbad@mastodon.gamedev.place avatar

Here's the SUSS API additions I made to AIController for this "lead the target" feature. You just need to call "SetFocusLeadTarget" with a projectile speed in addition to the usual "SetFocus" and it does the rest.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gamedev
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines