Skip to content

Commit

Permalink
Merge branch 'lua_player_attack_test' into 'master'
Browse files Browse the repository at this point in the history
Direct player attack lower by target's half height

See merge request OpenMW/openmw!4562
  • Loading branch information
Capostrophic committed Mar 4, 2025
2 parents 6e9d15f + 7670afc commit 82307d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/data/integration_tests/test_lua_api/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ testing.registerLocalTest('playerWeaponAttack',
self.controls.run = true
self.controls.movement = 1
else
destination = targetActor.position
local halfExtents = types.Actor.getPathfindingAgentBounds(targetActor).halfExtents
destination = targetActor.position - util.vector3(0, 0, halfExtents.z)

if nextTime < time then
if use == 0 then
Expand Down

0 comments on commit 82307d4

Please sign in to comment.