obj_sentrygun inputs

Discussion in 'Mapping Questions & Discussion' started by ZargonX, Aug 15, 2008.

  1. ZargonX

    ZargonX L3: Member

    Messages:
    109
    Positive Ratings:
    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.
     
  2. bobby1211

    bobby1211 L2: Junior Member

    Messages:
    64
    Positive Ratings:
    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: Aug 16, 2008
  3. VelvetFistIronGlove

    aa VelvetFistIronGlove

    Messages:
    567
    Positive Ratings:
    437
    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
     
  4. ZargonX

    ZargonX L3: Member

    Messages:
    109
    Positive Ratings:
    4
    Hmm... I'll have to try it with just SetTeam instead of SetTeamNum. The SDK could very well be wrong :)