OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Rocko Bonaparte on 03 Mar 2005, 07:25:24

Title: Mass invincibility / debugging in game
Post by: Rocko Bonaparte on 03 Mar 2005, 07:25:24
I'm trying to test a multiplayer mission with two computers.  Sadly, I'm only one person, and it's hard to juggle the two important slots needed for my mission.  Is there a way to entire a multiplayer debug mode?  Are there some server-side commands to make everybody invincible?  I'm sure there's something for this kind of thing.  It's either that or I alter the mission to put in handmade super soldiers or severely simplify the situation -- which might eliminate the problems to begin with.
Title: Re:Mass invincibility / debugging in game
Post by: Terox on 04 Mar 2005, 01:28:24
there are hidden bis units that can be created that are invincible, and designed for mission testing

they are called "Cheated" units

their class names are:

"SoldierWSaboteurCheat";

"SoldierESaboteurCheat";

just edit your mission.sqm and replace an east units with SoldierESaboteurCheat

and a west unit with
SoldierWSaboteurCheat

there is also an east officer that has a cheated version


and a uaz that is almost indestructable.

The unit shows up in the player selection screen as

sabatour cheated.


they are great for testing coop missions etc

Title: Re:Mass invincibility / debugging in game
Post by: Rocko Bonaparte on 05 Mar 2005, 07:31:32
I don't see the units in anything, and I getting a "Loading of mission failed!" error when I try to load the mission.sqm in which I put some SoliderWSaboteurCheat units.  Is there a specific addon I may need to include for that?
Title: Re:Mass invincibility / debugging in game
Post by: Merc on 05 Mar 2005, 18:19:23
I think i have a solution.

Put:

Code: [Select]
name_of_person addeventhandler ["hit",{name_of_person setdammage 0}]
In the init. field of the guys you want to be invincible.
Title: Re:Mass invincibility / debugging in game
Post by: Rocko Bonaparte on 06 Mar 2005, 09:18:59
I was presuming there was a pre-set way of doing it, but an event handler like that also works quite nicely.  I just gave it a shot and the soldiers can withstand LGB blasts.  But to be fair, I haven't yet tried ejecting from a thousand meters, or running into the ocean.