OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: John on 20 Jul 2006, 17:33:04
-
HI there!
im making a mission for me and my mate and he wants to use a addon that is west....and also the addon im using is west so what im trying to do is ive put the addon he wanted to use in to a pbo decrypter to see if i can change the script of his addon to east...
Is this posible?....if so where do I change it?
Cheers
-
yes you can.
make the leader in your friends group a EAST unit.
group his WEST units to that leader.
Then set the condition of the leaders presence to 0 in your editor.
Now when the missions starts the leader is not present but your firends WEST units are EAST (red)
-
But if i do this will he still be able to control the other ppl in the team....
Its a ten man team....so he must control the other 9 AI players.....will this still be the case if I do what you say?.....im not sure.
-
Nop defenately dosnt work.....when i try it in the editor the est guy with probability 0% is still their i shoot him and then im in control of my troops but when i export it to multiplayer....he is still their and I shoot him and he just respawn so the command of the men dosnt come on to me and I dont have control of the troops.
Help :D
-
Open the mission.sqm and change manually the sides of the units from "WEST" to "EAST" may work.
class Mission
{
randomSeed=13558787;
class Intel
{
briefingName="-= Air War CTF =-";
};
class Groups
{
items=1;
class Item0
{
side="WEST";
class Vehicles
{
items=1;
class Item0
{
position[]={5295.804199,11.559014,4986.736328};
id=0;
side="WEST";
vehicle="SoldierWB";
player="PLAYER COMMANDER";
leader=1;
skill=0.600000;
};
};
};
};
-
That does work Mike, But it takes a long time and fiddly load save work to stop the mission editor over writting the Mission.sqm
The best way to do it is to as said above group the west unit to an east unit or the other way round and then in the leader unit enter
DeleteVehicle this, and the other soldier should remain that side
-
If this is a mission for MP the above suggestion might not work. Instead put the deleteVehicle command in a script, put a slight pause at the top of the script before the deleteVehicle command, and then call the script from the leader unit's init field. Put the leader unit somewhere out of sight.
In the leader units init:
this exec "pausedelete.sqs"
pausedelete.sqs
~0.5
deleteVehicle _this
exit
Of course, you could also use Chris' OFP Script Editor which has a wizard to generate scripts to customise units.