WFL weapon AND unit

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

Moderator: Forum Moderators

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

WFL weapon AND unit

Post by ZombieKnight »

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?
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Post Reply