Page 1 of 1

Ambush Not Working [Solved]

Posted: Thu Jul 16, 2009 2:29 pm
by KnightsFan
Yup, another of my LUA problems. My ambush isn't working. It was working earlier, but that was just testing. I changed the spawn path and now it stopped working.

Ambush code. Team COM has 1 class that I am sure works.

Code: Select all

SetupAmbushTrigger("com_trigger", "com_spawn", 3, COM)
I'm getting these errors in my log
Hidden/Spoiler:
Message Severity: 2
.\Source\Character.cpp(1217)
Trying to spawn a character with no class. Skipping this character. Perhaps the UnitClassCounts are too low?

Message Severity: 2
.\Source\Character.cpp(1217)
Trying to spawn a character with no class. Skipping this character. Perhaps the UnitClassCounts are too low?
WARNING: could not spawn all the ambushers...team is too small or there are too many dudes running around alive

EDIT: It started working again... mostly. Only 2 out of 3 of my guys are spawning. They are all the same class.

Re: Ambush Not Working

Posted: Thu Jul 16, 2009 3:44 pm
by [RDH]Zerted
It looks like you're not allowing enough units to spawn as that class. Remember, when you add a unit class to a team, you also set how many of them can run around ingame at any point in time.

Re: Ambush Not Working

Posted: Thu Jul 16, 2009 3:56 pm
by KnightsFan
Found my error. Apparently, it didn't like how the min and max of my units were 1. When I changed the max to 2, it worked like a charm.