PMC websites shut down November 13th 2025 unless web hosting fees are paid. See up to date status from PMC Website Hosting and Domain Registration Fee Status forum topic. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond November 13th 2025 when web hosting fees are due.

User Tools

Site Tools


ofp:missions:savestatus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ofp:missions:savestatus [2007/07/12 14:02] – created savestatus initial page snakemanofp:missions:savestatus [2024/07/31 15:11] (current) – links added. snakeman
Line 1: Line 1:
-====== saveStatus ======+====== OFP saveStatus ====== 
 + 
 +[[https://www.pmctactical.org/forum/viewforum.php?f=43|OFP Forum]], [[:ofp|OFP Home]], [[ofp:file_formats|OFP File Formats]], [[ofp:tools|OFP Tools]], [[ofp:missions|OFP Missions]], [[ofp:modeling|OFP 3D Modeling]], [[ofp:terrain|OFP Terrain]] 
 + 
 +**Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA)
  
 Syntax: object **saveStatus** name Syntax: object **saveStatus** name
Line 19: Line 23:
 x = PMC_sf4 saveStatus "sf4_02"; x = PMC_sf4 saveStatus "sf4_02";
 </code> </code>
 +
 +====== loadStatus ======
 +
 +Syntax: object **loadStatus** name
 +
 +Example:
 +
 +<code>
 +player loadStatus "playerstate";
 +</code>
 +
 +This command loads the units status, weapons and equipment he carries, his health status and identity (setIdentity: face type and name set previously in description.ext). However these must have been first saved with the above //saveStatus// command.
 +
 +More examples:
 +
 +<code>
 +PMC_sf1 loadStatus "sf1_02"; PMC_sf1 setdammage 0;
 +PMC_sf2 loadStatus "sf2_02";
 +PMC_sf3 loadStatus "sf3_02";
 +PMC_sf4 loadStatus "sf4_02";
 +
 +{ if (!alive _x) then { deletevehicle _x }; _x setdammage 0 } foreach [PMC_sf2,PMC_sf3,PMC_sf4];
 +</code>
 +
 +Notice that there is certain degree of problems if units are damaged in the previous mission, as they start that way in the next one too. Unless the mission specificly is "out in the field" type and not in homebase, you should use the above script to restore the health of the units so they wont start the mission injured.
 +
ofp/missions/savestatus.1184248975.txt.gz · Last modified: 2007/07/12 14:02 (external edit)