Trying to do something with the Wh40K WH files using the squad mechanic.
A Battle Sister Squad has a certain tag [ohTagA.ohAS] for testing whether a unit is a Sister of Battle Unit.
One of the options is the Rhino transport. To use the drag 'n drop, this option creates the Rhino unit as a detached squad.
Several options for the Rhino are dependent on the Sister of Battle Tag.
The question/problem is how do I get the [ohTag.ohAS] to transfer to the Rhino unit?
I've tried the following as the post-link (and pre-link) of the Rhino unit:
var result as number
var result1 as number
if (unit.tagis[ohTagA.ohAS] > 0) then
result = entity.assign[ohTags.ohAS]
result1 = entity.assign[ohTagA.ohAS]
endif
And it doesn't seem to work with the if statement as I written it. I've also tried to do several variations, entity, unit, squad, root and nothing seems to get it to trigger (or not trigger) as the case may be. (And I know that it's the if that the trouble since if I comment it out, the tags get transferred properly.)
The reason that I want it to work this way is that there are a few units which can take the Rhino transport, and if you drag it into a non-sister of battle unit - certain options to the rhino would be invalid and I want them to "disappear" as the case may be.
A Battle Sister Squad has a certain tag [ohTagA.ohAS] for testing whether a unit is a Sister of Battle Unit.
One of the options is the Rhino transport. To use the drag 'n drop, this option creates the Rhino unit as a detached squad.
Several options for the Rhino are dependent on the Sister of Battle Tag.
The question/problem is how do I get the [ohTag.ohAS] to transfer to the Rhino unit?
I've tried the following as the post-link (and pre-link) of the Rhino unit:
var result as number
var result1 as number
if (unit.tagis[ohTagA.ohAS] > 0) then
result = entity.assign[ohTags.ohAS]
result1 = entity.assign[ohTagA.ohAS]
endif
And it doesn't seem to work with the if statement as I written it. I've also tried to do several variations, entity, unit, squad, root and nothing seems to get it to trigger (or not trigger) as the case may be. (And I know that it's the if that the trouble since if I comment it out, the tags get transferred properly.)
The reason that I want it to work this way is that there are a few units which can take the Rhino transport, and if you drag it into a non-sister of battle unit - certain options to the rhino would be invalid and I want them to "disappear" as the case may be.