- Joined
- Sep 13, 2008
- Messages
- 44
First i want to know if this is correct:
Or does it need to be like this:
The other question is: is there a way to detect a "buying unit"?
Like the "GetTriggerUnit()" but with buying unit instead of triggering unit...
I need to "remove" a location but with the array number being the number of the player that owns the buying unit...
This is part of the trigger:
-
Trigger
-
Events
-
Unit - Unit did something...
-
-
Conditions
-
...
-
-
Actions
-
Set Pos[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
-
Something happens with Pos...
-
Custom script: call RemoveLocation(udg_Pos[GetPlayerId( GetOwningPlayer(GetTriggerUnit())) + 1])
-
-
Trigger
-
Events
-
Unit - Unit did something...
-
-
Conditions
-
...
-
-
Actions
-
Set Pos[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
-
Something happens with Pos...
-
Custom script: call RemoveLocation(udg_Pos[GetPlayerId( GetOwningPlayer(GetTriggerUnit()))])
-
Like the "GetTriggerUnit()" but with buying unit instead of triggering unit...
I need to "remove" a location but with the array number being the number of the player that owns the buying unit...
This is part of the trigger:
-
Trigger
-
Events
-
Unit - A unit Sells an item (from shop)
-
-
Conditions
-
(Item-type of (Sold Item)) Equal to Item
-
-
Actions
-
Set BuyerPos[(Player number of (Owner of (Buying unit)))] = (Position of (Buying unit))
-
Something happens with BuyerPos...
-
Custom script: call RemoveLocation(udg_BuyerPos[GetPlayerId( GetOwningPlayer(Get?????Unit()))])
-