OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 31 Aug 2002, 22:57:02

Title: How to know the weapon the player had when the mission ended in order to...
Post by: seanver on 31 Aug 2002, 22:57:02
How to know the weapon the soldier had when the mission ended in order to make the player have that weapon in the outro of the mission. With resistance, obviosly.
Title: Re:How to know the weapon the player had when the mission ended in order to...
Post by: Tomb on 01 Sep 2002, 01:07:12
I believe ya need to use the "WeapoPool" spell  :)
Title: Re:How to know the weapon the player had when the mission ended in order to...
Post by: vektorboson on 01 Sep 2002, 02:22:17
Execute this when mission ends:

Code: [Select]
_xx = player saveStatus "StatusPlayer"


Execute this in you outro.sqs (or whatever you called it):

Code: [Select]
_xx = actor loadStatus "StatusPlayer"

I don't know if this works in intros and outros but it works in campaigns and in single-missions