WFL weapon AND unit

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
ZombieKnight
Posts: 371
Joined: June 27th, 2022, 2:26 pm
Location: Czech Republic

WFL weapon AND unit

Post by ZombieKnight »

Hi,
In [resistance] tag I can access current unit and current weapon using WFL, which is great
...
BUT I don't know how to compare those two variables, because weapon object is only accessible in [filter_weapon],
which is the only place where unit object is hidden (overwritten with weapon object)...

Any idea how to compare weapon and unit object inside of [resistance] tag?
Post Reply