Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How to know the weapon the player had when the mission ended in order to...  (Read 1624 times)

0 Members and 1 Guest are viewing this topic.

seanver

  • Guest
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.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
I believe ya need to use the "WeapoPool" spell  :)

vektorboson

  • Guest
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