- Joined
- May 11, 2008
- Messages
- 1,198
IssueTargetOrder
IssuePointOrder
IssuePointOrderById
IssueTargetOrderById
Why aren't these working on destructables?
I even went through the trouble of importing the library called GetClosestWidget "by Bannar aka Spinnaker" and I can do things like get its x/y reals but the main thing I need to do is target it with an ability through the trigger and I can't seem to do it. Doesn't matter if I use eattree string or smart string or even harvest string or any of the various Ids you'd think would work, think one of them was 852416, whatever it was I had it screen shot to make sure I got it right so that's not really important...
IssueBuildOrder
Should I be using this one? Doesn't seem correct at all but I'm not sure what else I can try at this point. Am I messing up in the Object Editor somehow? Because all I'm trying to do is make the unit eat a second tree on a timer after eating the first one. I'm getting the debug message that everything is fine except the order function call. Normally the activate field is blank on a lot of abilities, but I don't think it's necessary to fill that in for using the function call, but if I had to, that would be news to me.
Line is this at the moment:
call IssueTargetOrder(d.cast,"eattree",d.targ)
//or for you that don't know what struct I'm using:
call IssueTargetOrder(unitdevourer,"eattree",destructabletree)
IssuePointOrder
IssuePointOrderById
IssueTargetOrderById
Why aren't these working on destructables?
I even went through the trouble of importing the library called GetClosestWidget "by Bannar aka Spinnaker" and I can do things like get its x/y reals but the main thing I need to do is target it with an ability through the trigger and I can't seem to do it. Doesn't matter if I use eattree string or smart string or even harvest string or any of the various Ids you'd think would work, think one of them was 852416, whatever it was I had it screen shot to make sure I got it right so that's not really important...
IssueBuildOrder
Should I be using this one? Doesn't seem correct at all but I'm not sure what else I can try at this point. Am I messing up in the Object Editor somehow? Because all I'm trying to do is make the unit eat a second tree on a timer after eating the first one. I'm getting the debug message that everything is fine except the order function call. Normally the activate field is blank on a lot of abilities, but I don't think it's necessary to fill that in for using the function call, but if I had to, that would be news to me.
Line is this at the moment:
call IssueTargetOrder(d.cast,"eattree",d.targ)
//or for you that don't know what struct I'm using:
call IssueTargetOrder(unitdevourer,"eattree",destructabletree)