How to have units spawn from Players only

K

Kreios

Guest
I have multiple regions in one part of the map and I want to have it so that when a unit from any User controlled player walks through it and a group of computer enemies spawns. The way I have it set now is if any unit walks through it'll spawn but I dont want that, just people on force ONE which is all human players on the same team, the other forces are computers
 

vaziocs

New Member
Reaction score
5
I have multiple regions in one part of the map and I want to have it so that when a unit from any User controlled player walks through it and a group of computer enemies spawns. The way I have it set now is if any unit walks through it'll spawn but I dont want that, just people on force ONE which is all human players on the same team, the other forces are computers

Just put in the condition
a unit enters region

condition - Owner of entering unit is controlled by a user.
 
K

Kreios

Guest
The following is my trigger, but now nothing happens when my units go through the regions i set up, the conditions made it not work, need help!


Doberman Spawn
Events
Unit - A unit enters Region 046 <gen>
Unit - A unit enters Region 045 <gen>
Unit - A unit enters Region 044 <gen>
Unit - A unit enters Region 043 <gen>
Unit - A unit enters Region 042 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
(Owner of (Entering unit)) Equal to Player 2 (Blue)
(Owner of (Entering unit)) Equal to Player 3 (Teal)
(Owner of (Entering unit)) Equal to Player 4 (Purple)
(Owner of (Entering unit)) Equal to Player 5 (Yellow)
(Owner of (Entering unit)) Equal to Player 6 (Orange)
(Owner of (Entering unit)) Equal to Player 7 (Green)
(Owner of (Entering unit)) Equal to Player 8 (Pink)
(Owner of (Entering unit)) Equal to Player 9 (Gray)
(Owner of (Entering unit)) Equal to Player 10 (Light Blue)
Actions
Unit - Create 10 Doberman for Player 12 (Brown) at (Center of Region 041 <gen>) facing Default building facing degrees
Unit - Create 10 Doberman for Player 12 (Brown) at (Center of Region 047 <gen>) facing Default building facing degrees
 

Cheesy

some fucker
Reaction score
95
You can only bump your thread after 24 hours has passed, you are with a warning this time, next will get you -repped.

Try using one condition instead of 10.

Code:
(Owner of (Entering unit)) Not Equal to Player 11 AND (Owner of (Entering unit)) Not Equal to Player 12

Freehand, and untested. Try it out.

PS: Use [ code ] [/ code ] tags for triggers.

Best of luck,
CheesyBeefy :thup:
 

vaziocs

New Member
Reaction score
5
The following is my trigger, but now nothing happens when my units go through the regions i set up, the conditions made it not work, need help!


Doberman Spawn
Events
Unit - A unit enters Region 046 <gen>
Unit - A unit enters Region 045 <gen>
Unit - A unit enters Region 044 <gen>
Unit - A unit enters Region 043 <gen>
Unit - A unit enters Region 042 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
(Owner of (Entering unit)) Equal to Player 2 (Blue)
(Owner of (Entering unit)) Equal to Player 3 (Teal)
(Owner of (Entering unit)) Equal to Player 4 (Purple)
(Owner of (Entering unit)) Equal to Player 5 (Yellow)
(Owner of (Entering unit)) Equal to Player 6 (Orange)
(Owner of (Entering unit)) Equal to Player 7 (Green)
(Owner of (Entering unit)) Equal to Player 8 (Pink)
(Owner of (Entering unit)) Equal to Player 9 (Gray)
(Owner of (Entering unit)) Equal to Player 10 (Light Blue)
Actions
Unit - Create 10 Doberman for Player 12 (Brown) at (Center of Region 041 <gen>) facing Default building facing degrees
Unit - Create 10 Doberman for Player 12 (Brown) at (Center of Region 047 <gen>) facing Default building facing degrees

god dammit that obviously wont work because its AND. u could just put the shit i typed. MAYBE the condition doesnt work because it doesnt look nothing like i typed.
 
K

Kreios

Guest
What are you talking about? I didnt bad mouth you, that was the guy that was originally helping me but I didnt understand what he was saying, I used your trigger and it worked so thank you, I wasn't saying anyone here was stupid

"god dammit that obviously wont work because its AND. u could just put the shit i typed. MAYBE the condition doesnt work because it doesnt look nothing like i typed."

I didn't say that
 

Cheesy

some fucker
Reaction score
95
Woops! Sorry about that Kreios, I thought, well... I just got mixed up. XD

Sorry for that, COMPLETE misunderstanding on my part.
 

HappyPeasant

New Member
Reaction score
8
um why not this condition no if ands or ors lol

Code:
    Events
        Unit - A unit enters Your Activation Region <gen>
    Conditions
        ((Triggering player) controller) Equal to User
    Actions
        Unit - Create 1 Footman for Hostiles at (Center of (Your Spawn Region)) facing Default building facing degrees
 
General chit-chat
Help Users

      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