PDA

View Full Version : Unit changing side but not behaviour.



trick99
Oct 1 2011, 16:36
Ive tried a couple of hours now to dig up how to get a single unit to change side from West/Bluefor to East/Opfor. I got the unit to do it in some cases but always with a big price of problems. I made a group he could join, and I tried with East-units he jointSilent with.. all is good in the regard that he gets to being East. But the problem is that he either wants to get to the other group and join up, as start to sprint across the map to the Eastgroup.

Is there a easy way to do it, either by start and after some time.

The scene is your team of bluefor got the news of a compound that is run by redfor with help of some bluefor soldiers. So need to have certain units that are treated and will attack as per East-based unit. I cant use capture mode as they must fight the bluefor side and help the East side in battles.

Another thing I tried was to have a bluefor-unit do a patrolroute, then had a group of redfor-units with "groupthis" command, then a deletevehicle this-command so they wouldnt even be there on the map to run to for the unit.. but as soon as I hit the radiotrigger with [unitname] joinSilent grpname, he froze and didnt continue his patrolroute.. I walked upto him as I thought it was broken command as the old (grpname units was gone as per deletevehicle) but then he turned to me and shot me cold ^^

The problem is that I cant use joingroup as they are not always close enough to be functioning as one unit.
What I saw something about is to make createCenter but that I didnt really understand, if it goes to the init.sqf or in a trigger or unit, I tried to mess around with it.. but fail hehe. Looked interesting as then I could make small groups that was East-based even tho it was West/bluefor units.

Ive tried to search the forum for good examples for factions, createcenter, sides etc.. but no real go there.

F2k Sel
Oct 1 2011, 17:51
If you want to do it from the start of the mission this will work, you will just have to swap it around to fit your situation.
http://forums.bistudio.com/showthread.php?t=125415


You could probably do it by spawning a unit to join.
If you have a Blufor named joe then placing this in a trigger would work.


tempgroup = createGroup east ;unit = tempgroup createUnit ["TK_Soldier_GL_EP1",getPos joe, [], 3, "FORM"];[joe] joinsilent tempgroup;deleteVehicle unit

It will create an east unit on the map next to the unit that will join him and then delete it's self.

If there are no East on the map you will need to add createcenter east.