Home   Help Search Login Register  

Author Topic: change side script  (Read 600 times)

0 Members and 1 Guest are viewing this topic.

paper plane

  • Guest
change side script
« on: 08 Feb 2004, 11:34:47 »
HI ! Anyone have ideas for create a script to change the side of the unit in the mission.

for example: I have a civ unit(police cz75) , and some guer unit. but the  guer unit unable  to fire for civ unit. and If I fire for them will get  minus score. and I use "dofire" script is also unable to work. so I want to change the side of my unit.   ???

HuNtA

  • Guest
Re:change side script
« Reply #1 on: 08 Feb 2004, 11:43:43 »
simple, group em t a soldier of the enemy side which has equal or greater value (eg if the police is a private, the soldier is a corpral) and then U put deleteVehicle this in the init of the soldier

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:change side script
« Reply #2 on: 08 Feb 2004, 11:47:43 »
HuNtA is right.

However, once the mission has started I don't think you can change the side of a unit.
Plenty of reviewed ArmA missions for you to play

Ade

  • Guest
Re:change side script
« Reply #3 on: 08 Feb 2004, 22:56:03 »
Maybe this would work mid-mission -

Let's say you have a group of armed civilians.  To put them on the west side at the start of a mission, you group them to a high-ranking west unit, and then put "deleteVehicle this" into the west unit's init line.

It might (and I've never tried this) work mid-mission if you call a little script at the right moment that uses createUnit to make a high-ranking east unit who is in the same group as the civilians, kind of like:

"soldierEB" createUnit [getpos near_civvies, civvies, "deleteVehicle this" ,"COLONEL"]

Hope that helps,

Ade

paper plane

  • Guest
Re:change side script
« Reply #4 on: 09 Feb 2004, 09:05:52 »
 ;)  I have done , Thanks to all.