| 07-23-2004, 09:58 AM | #1 |
Hi, I have a problem at the moment with being able to detect a right-click mouse event or a right-click move condition. Here is the code I have for achieving the effect "IF" you push the move button, but as the little tooltip in the editor says the right click is not the same as the button click: Code:
Puppet Move
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Unit-type of (Ordered unit)) Equal to Infantry (Commander)
(Issued order) Equal to (Order(move))
Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Ordered unit)) of type Infantry (Puppet)) and do (Unit - Order (Picked unit) to Move To ((Target point of issued order) offset by ((Random real number between -600.00 and 600.00), (Random real number between -600.00 and 600.00))))Basically the "Puppets" are supposed to move to to random points around the commander whenever it moves, so i need something that does this trigger for right-clicks aswell. Oh, I also have another problem there is a multiboard trigger that says "Multiboard - Show/Hide All Multiboards" yet it only ever displays one multiboard for me even though the two that i have work perfectly alone o_O Any help is appreciated for either of these problems, and thanks in advance :> |
| 07-23-2004, 11:05 AM | #2 |
All right clicks register as order 'smart' i believe, use that as the conditional order code (targeting a point) |
| 07-23-2004, 11:42 AM | #3 |
Wow it works perfectly thanks for your help BBDino :D |
