Saturday, April 21, 2012

Get Corpse Autocast Trigger

if i want make a meat wagon enable/disable its "autocast" of the "get corpse" ability


Code:
call IssueImmediateOrderById( <unit>, 852051 )

seems not to working (get the id somewhere so i dont even know its right one)

and second

how detect if a unit has a ability activated like "Autocast" ability or such like burrow or defend.|||All those autocast abilities should have On and Off versions of simple orderstrings. Open the ability in the object editor and just find the correct "off" orderstring and issue that.

I'm not sure you can detect whether and ability is set to auto-cast or not - so if you are triggering something, you'll just have to use a flag of some sort to mark units that have autocast on/off (by flag I mean: unit group, boolean, custom value, etc).|||thx for the answers

unfortunate that was also my first idea but "get corpse" is the only auto cast abilities which has no such string in the WE neither via Trigger or in object editor only "loadcorpse".

But oddly it can be set as "default active abilitie" in the Unit Editor

When i tried to use make my own "loadcorpseoff" but it doesn't work.

Well the answers to my 2nd Question work.

edit: Thank you again it works now.|||The problem was, the order you were giving (#852051) turns autocast on for get corpse. To turn it off, you need to use #852052.


Code:
call IssueImmediateOrderById( <unit>, 852052 )

Tested it, it works.

No comments:

Post a Comment