Page 1 of 1
specifying spawn nodes for units?
Posted: Mon Jun 08, 2009 11:56 pm
by MileHighGuy
is there a way to make a specified unit only spawn from a defined path node?
thanks
Re: specifying spawn nodes for units?
Posted: Tue Jun 09, 2009 12:31 am
by RepSharpshooter
Normal spawning is uncontrollable. You can always force spawn with SpawnCharacter() but that will spawn a character before he hits the spawn button. I think your best bet is to make an OnCharacterSpawn() event function, check the character class, (GetCharacterClass(character) ? ) and then depending on its value (it is an integer), teleport the character to do a different path node.
Re: specifying spawn nodes for units?
Posted: Wed Jun 10, 2009 12:03 pm
by MileHighGuy
i thought you couldnt put lua commands like that in bf1, ill try it anyway. what part of the lua do i put them in?