peonic 10 Posted July 17, 2009 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
Junker 0 Posted July 17, 2009 this is what you looking for >> http://community.bistudio.com/wiki/setFriend Share this post Link to post Share on other sites
peonic 10 Posted July 17, 2009 (edited) 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 July 17, 2009 by peonic Share this post Link to post Share on other sites
Junker 0 Posted July 17, 2009 try setting the 0 too 0.3 or something might help.. Share this post Link to post Share on other sites