HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Function Work --One player

03-08-2003, 10:02 PM#1
Aiursrage2k
Another tidbit... If you want to call a function but it works for all players, and not just for one particular player, add this if statement, (GetLocalPlayer() == p) where p is a player variable.

An example, now you can select a unit for one particular player.
Code:
Code:
    if (GetLocalPlayer() == p) then 
      call ClearSelection() 
      call SelectUnit(whichUnit, true) 
    endif