We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6676fd commit 7670afcCopy full SHA for 7670afc
scripts/data/integration_tests/test_lua_api/player.lua
@@ -315,7 +315,8 @@ testing.registerLocalTest('playerWeaponAttack',
315
self.controls.run = true
316
self.controls.movement = 1
317
else
318
- destination = targetActor.position
+ local halfExtents = types.Actor.getPathfindingAgentBounds(targetActor).halfExtents
319
+ destination = targetActor.position - util.vector3(0, 0, halfExtents.z)
320
321
if nextTime < time then
322
if use == 0 then
0 commit comments