obj_sentrygun inputs

ZargonX

L3: Member
Nov 30, 2007
109
4
Has anyone been able to set up a pre-set obj_sentrygun and implemented a way to have it switch teams? The SDK says you can use a TeamNum input (2 for Red, 3 for Blue) to toggle who controls it, but I'm not having any luck getting that to work.
 

bobby1211

L2: Junior Member
Jun 28, 2008
64
11
Interesting concept. I have played with them a bit. I'll try it right now.

Edit/

I tried and there doesn't seem to be an output to change the team. I entered in my timer to OnSetupFinished SetTeamNum 3 and it did not change as it 'should'

-Bobby
 
Last edited:
Dec 25, 2007
566
439
I've not tried to activate it from a trigger, but from the console I've successfully used the SetTeam input (not SetTeamNum). The sentry doesn't change colour (until it's destroyed!), but will then target the opposite team.

I regularly use this to test the effectiveness of sentry placements on my map.

Previous to the SDK update with placable sentries there was a bug in the sentry AI: if you changed the sentry's team it would target itself :D
 

ZargonX

L3: Member
Nov 30, 2007
109
4
Hmm... I'll have to try it with just SetTeam instead of SetTeamNum. The SDK could very well be wrong :)