Home   Help Search Login Register  

Author Topic: loadstatus/savestatus  (Read 1119 times)

0 Members and 1 Guest are viewing this topic.

bored_onion

  • Guest
loadstatus/savestatus
« 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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:loadstatus/savestatus
« Reply #1 on: 04 Mar 2005, 21:04:25 »
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.
« Last Edit: 04 Mar 2005, 21:13:57 by macguba »
Plenty of reviewed ArmA missions for you to play

bored_onion

  • Guest
Re:loadstatus/savestatus
« Reply #2 on: 05 Mar 2005, 17:46:09 »
thanks,

ill play around with it