Multiplayer Scripting http://community.bistudio.com/wiki/6thSense.eu:EG Trigger Conditions: countdown delays the reaction of a trigger for a certain length of time, determined by the min, max and mid values. thus if the triggering unit walks into the area then leaves, the trigger will fire after the countdown is complete, regardless of whether the triggering unit is present or not. timeout requires that the condition of the trigger must be met for a certain length of time, determined by the min, max and mid values. thus if the triggering unit walks into the area then leaves before the timeout is complete, the trigger will not fire. EDITOR CODES: Creating a group name Grp1 = group this; Stops Radio messages: enemy tank 200m when you cant even see it! enableRadio false; Activating objective one in a trigger: Condition: !(alive unit1) On activ: "1" ObjStatus "Done"; ob1 = true Adding a Group to Cargo + making the group so they wont flee {_x moveincargo truck} ForEach units group this; {_x allowfleeing 0} foreach units group this; Start at a height: this setpos [getpos this select 0,getpos this select 1, 75]; unit will spawn at 75 m in the air Setting a Group Identity this setgroupId ["Juliet Four Six","groupcolor0"]; Placing a object flat to the ground this setvectorup [0,0,1]; Make Civilians Enemy Add this to the init. Civilian setFriend [west, 0]; Civilian setFriend [east, 1]; west setFriend [Civilian, 0]; east setFriend [Civilian, 1]; To make an Object facing a random 360 degrees e.g. a wreck this setDir (Random 360); Adding a Weapon to the cargo of a truck/ammo crate. _truck addWeaponCargo ["M16A4",5]; This will add 5 M16A4s to the cargo hold Triggers That Only Triggers if you are a ground unit! (Planes or helicopters wont trigger it) Condition: "Land" counttype thislist > 0; Flag On Flag Pole: FLAGPOLE setFlagTexture "Flagfilename"; Burning fire: OBJECT inFlame true/false; To make a unit stand up and stay up type: Unitname setUnitPos "UP"; To make a unit prone/laydown and stay down type: Unitname setUnitPos "Down"; To make a unit kneel and stay kneeling type: Unitname setUnitPos "Middle"; Hint message hint "blabla"; Radio Message Unitname sidechat "bla bla bla"; Make unit take no damage this allowDamage false OR unitname addEventHandler ["HandleDamage", { 0 }] Unlimited Ammo unitname addEventHandler ["Fired", { (_this select 0) setVehicleAmmo 1 }] Only works if you do not assign other weapons to the unit (ie: removeAllWeapons, addWeapon, etc). Unlimited Fuel unitname addEventHandler ["Fuel", { (_this select 0) setFuel 1 }] Fuel will only refill when tank is completely empty Add weapons/items to unit this addWeapon "Binocular" this addWeapon "M9_SD" if you are adding weapons to a unit add the magazines first then weapon, otherwise you will start with an empty weapon and have to reload Shutting every door within a radius - needs to go in the init line of a Game Logic 0 = [getpos this,300] spawn { sleep 1; { private "_b"; _b = _x; for "_i" from 0 to 7 do { _b animate ["dvere" + str _i,1] }; } foreach ((_this select 0) nearobjects (_this select 1)) }