Jump to content
Dean House

How to switch one players side if they touch a trigger

Recommended Posts

I am currently setting up a campaign in the Eden editor where the intro has you in a slave state area. There are some "decorations" that are basically armed units patting down civs, aiming guns at them, ect. The point of these is to show you are in a slave state, but I wanted you to get shot for interfering if you got too close. I thought the simplest way would be to set the player to OPFOR so they get shot if they try walking near the area, but now I can't figure out how to script a way to change their side, can someone help me?

Share this post


Link to post
Share on other sites

Have you tried using setCaptive?

Mark a unit as captive. If unit is a vehicle, commander is marked. A captive is neutral to everyone (belong to civilian side), and will not trigger "detected by" conditions for its original side.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×