Dota2-Gameplay icon indicating copy to clipboard operation
Dota2-Gameplay copied to clipboard

Vector type in Lua Tools is broken for MoveToPositionAggressive

Open stranger568 opened this issue 1 year ago • 2 comments

Description

With new monster hunter update, some functions using vectors now expect vectorws You have already fixed SetAbsOrigin earlier ( #29163 )

CDOTA_BaseNPC:MoveToPositionAggressive(Vector(0,0,0)) MoveToPositionAggressive parameter 1: expected vectorws but got vector.

and from MODIFIER_EVENT_ON_ORDER OnOrder data disappeared "new_pos"

And please fix console spam

Image

Example Match ID (and possibly Timestamp)

No response

Screenshots

No response

stranger568 avatar Nov 11 '25 21:11 stranger568

Description

With new monster hunter update, some functions using vectors now expect vectorws You have already fixed SetAbsOrigin earlier ( #29163 )

CDOTA_BaseNPC:MoveToPositionAggressive(Vector(0,0,0)) MoveToPositionAggressive parameter 1: expected vectorws but got vector.

and from MODIFIER_EVENT_ON_ORDER OnOrder data disappeared "new_pos"

And please fix console spam Image

Example Match ID (and possibly Timestamp)

No response

Screenshots

No response

You change to another API is ExecuteOrderFromTable For example: unit:MoveToPositionAggressive(Vector(0, 0, 0)) --> change to --> ExecuteOrderFromTable({ UnitIndex = unit:entindex(), OrderType = DOTA_UNIT_ORDER_ATTACK_MOVE, Position = Vector(0, 0, 0), Queue = true, }) Link: https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Scripting/API/Global.ExecuteOrderFromTable

============================== My source: HOPE: Revive More information at masterminhduc.blogsot.com

MasterMinhduc avatar Nov 16 '25 08:11 MasterMinhduc

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Nov 16 '26 09:11 github-actions[bot]