• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

AI

Status
Not open for further replies.
Level 28
Joined
Sep 26, 2009
Messages
2,520
I don't know how you fire your trigger, or what your trigger is supposed to do, but maybe you could create a player variable and when the trigger fires, save the triggering player into the variable and then check it using the if/then/else action.

Something along these lines:
  • Actions
    • Set Temp_player = (Owner of (Triggering unit))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Temp_player controller) Equal to Computer
      • Then - Actions
        • -------- does actions a Computer would do --------
      • Else - Actions
You will need to tweak this yourself (since I don't know how your trigger fires, etc., so you may not even use "triggering unit"), also this may be full of leaks.

I may be completely off though, so it would be better if someone more experienced checked this.
 
Status
Not open for further replies.
Top