How to make a teammate sentry turn against you

So i created a game where you are on a quest to find clues and defeat enemys on the way but i have a sentry that is on the same team as you. i used the teleporting sentries to make the npc move. but how do i make it so when you do something it turns your ally against you?

You can’t directly change the team of a sentry. You can deactivate that sentry then activate one that is not on your team.

Lol i haven’t been getting notified when someone replies to me. but when you replied i got a notification. Also thanks for the tip.