- Joined
- Mar 16, 2008
- Messages
- 46
You are not allow to build farm, any attempt will automatically cancel
so i dig up old thread and found an order ID that cancel a building when it started to be construct, but is this no longer working.
the above trigger detect when a building is being construct, it check the unit type, than it display a word "bamm" and cancel the construction. everything work until the most important part, it doesnt cancel.
and so i use trigger to detect order
it return (null) when i cancel any building.
please help, how do i trigger cancel building now?
Code:
Untitled Trigger 002 Copy
Events
Unit - A unit Begins construction
Conditions
(Unit-type of (Triggering unit)) Equal to Farm
Actions
Game - Display to (All players) the text: bamm
Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851976)
so i dig up old thread and found an order ID that cancel a building when it started to be construct, but is this no longer working.
the above trigger detect when a building is being construct, it check the unit type, than it display a word "bamm" and cancel the construction. everything work until the most important part, it doesnt cancel.
and so i use trigger to detect order
Code:
Untitled Trigger 001
Events
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order with no target
Conditions
Actions
Game - Display to (All players) for 30.00 seconds the text: (String((Issued order)))
it return (null) when i cancel any building.
please help, how do i trigger cancel building now?