extended: scripts: damageUnit: - offset: 1 #test category script code: | var ptr RuleItem itemRuleset; var int check; damaging_item.getRuleItem itemRuleset; itemRuleset.hasCategory check "STR_SNIPER_RIFLES"; #returns 1 if defined category found in item's arrey; else returns 0 if the item does not belong to this category if eq check 1; debug_log 2 723; # do our stuff end; return;
Isn't this the same functionality as already provided by tags?