Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
peonic

Switch Sides?

Recommended Posts

Hi Guys,

I'm wondering if it's possible through scripting to dynamically change which side the "Guerillas" are on during a mission.

As an example - in a mission I'm working on, I'd like the guerilla units to be friendly to CDF/USMC until a trigger is hit (in this case, detonation of a carbomb).

Is this possible?

Share this post


Link to post
Share on other sites

Hmmmm - almost! :)

It allows me to switch the USMC guys to being hostile once the trigger activates, but they just look at me aggressively, without actually shooting...

This was the code I used to turn them hostile:

Resistance setFriend [West, 0]; 
West setFriend [Resistance, 0];

The BIKI entry does specifically say that using this mid-mission can cause issues. Any ideas?

Edit:

Units spawned AFTER the side switch trigger is hit seem to act "normally" - I guess I'm going to have to work out how to despawn and then respawn the USMC troops to make them suitable hostile :)

Edited by peonic

Share this post


Link to post
Share on other sites

try setting the 0 too 0.3 or something might help..

Share this post


Link to post
Share on other sites
Sign in to follow this  

×