building attack

andrei009

Member
Reaction score
1
how can i check if a building is attacking other building (right clicking other building) and create units (in the attacking unit position) and send them to attack the right clicked building ?
unit - a unit owned by player 1 Is issued an order targeting an object event doesen't work
 

andrei009

Member
Reaction score
1
for me , isn't working , here is an example where are two farms (one red and one blue) , i select the red farm and rightclick on blue farm and nothing happens..

oh , the building must have rally point , oops

thanks DioD

got another fast question , how do i change the building supply provided (food produced) with triggers ?
 

Attachments

  • testmap.w3m
    13 KB · Views: 101

Tawnttoo

New Member
Reaction score
36
Trigger:
  • Player - Set Player 1 (Red) Food cap to 100


It's under Player - Set Property.
 

DioD

New Member
Reaction score
57
JASS:
constant native GetUnitFoodUsed     takes unit whichUnit returns integer
constant native GetUnitFoodMade     takes unit whichUnit returns integer
constant native GetFoodMade         takes integer unitId returns integer
constant native GetFoodUsed         takes integer unitId returns integer
native          SetUnitUseFood      takes unit whichUnit, boolean useFood returns nothing


no way to set food consumption or production values.

to let farms attack each other, farms MUST have attack, also you can change one of my systems for channel+smart trick, it will be usefull for you.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top