ofp:missions:savestatus
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ofp:missions:savestatus [2007/07/12 14:02] – created savestatus initial page snakeman | ofp:missions:savestatus [2024/07/31 15:11] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== saveStatus ====== | + | ====== |
+ | |||
+ | [[https:// | ||
+ | |||
+ | **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 " | x = PMC_sf4 saveStatus " | ||
</ | </ | ||
+ | |||
+ | ====== loadStatus ====== | ||
+ | |||
+ | Syntax: object **loadStatus** name | ||
+ | |||
+ | Example: | ||
+ | |||
+ | < | ||
+ | player loadStatus " | ||
+ | </ | ||
+ | |||
+ | This command loads the units status, weapons and equipment he carries, his health status and identity (setIdentity: | ||
+ | |||
+ | More examples: | ||
+ | |||
+ | < | ||
+ | PMC_sf1 loadStatus " | ||
+ | PMC_sf2 loadStatus " | ||
+ | PMC_sf3 loadStatus " | ||
+ | PMC_sf4 loadStatus " | ||
+ | |||
+ | { if (!alive _x) then { deletevehicle _x }; _x setdammage 0 } foreach [PMC_sf2, | ||
+ | </ | ||
+ | |||
+ | 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)