OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bored_onion on 04 Mar 2005, 20:10:08
-
this command is used to save the status of an object from one mission to another in a campaign. I have two questions about it:
1) What is status - Does the status include health, weapons, ammo or anything else.
2) How is it used - Presumably a status should be saved at the end of one mission and loaded at the start of the next? Does it save a file somewhere which it picks up and if so where does it save it to. Are there any more complex details involved?
Help greatly appreciated. ;D
-
You know how at the start of a mission the file init.sqs is launched automatically? Well there is a less well known file called exit.sqs which is launched automatically at the end of a mission. This is a good place to put your saveStatus commands. Just create a text file, name it exit.sqs and put it in the mission folder. loadStatus is probably best in init.sqs.
IIRC saveStatus records the unit's weapons and ammo. Not sure about damage, I do seem to remember having trouble with whether a unit was alive or dead. Experiment.
It does all get saved to somewhere but I'm not sure where.
-
thanks,
ill play around with it