fifthmanstanding

Briefing Doesn't Initialize After Death?

6 posts in this topic

Hi,

I have a custom mission briefing that is initialized in the mission folder and displays server rules etc;. Upon loading in it displays fine. After a player dies and respawns, however, it does not and is no longer present on the map screen. How can I make it permanent or force it to reload upon respawn? Not much use in having a rules section if no one can see them after their first death. 

I'm not so much of a good good coder boy, but I was wondering if it's the difference between "null =[] execVM " vs "[] execVM " in the init.sqf.

Thanks in advanced for any help. 

Pastebin to briefing file: http://pastebin.com/9QeHYmjA

Initialization script is: null =[] execVM "briefing.sqf"; from the init.sqf in mission file. 

Before death:    20170315074858_1.jpg

 

After Death:       20170315074716_1.jpg

Edited by fifthmanstanding

Share this post


Link to post
Share on other sites
Advertisement

Actually I just tried copying the  null =[] execVM  into initplayerlocal and loading in. Upon load in it doubles the briefing tabs that are also being shown by init.sqf. If you commit suicide and respawn, they both still disappear. 

Interestingly enough, I've got a server watermark logo that also runs off of init.sqf but if you die it's still there. So one would assume that if init.sqf meant it was only being loaded once upon login (but not respawn) then the server watermark logo should disappear too....but it's not. Which would beget the idea that something's wrong with my briefing file.sqf. 

If anyone can spot the issue with the briefing please do let me know: 

Edited by fifthmanstanding

Share this post


Link to post
Share on other sites

So to my init.sqf I added the line: 

_KilledHandler = player addEventHandler ["killed", {_this execVM "playerkilled.sqf"}];

Based on a post made years ago about this exact problem on a bohemia forum post. 

I then created a playerkilled.sqf with the lines:

waituntil {(alive player)};
 
execVM "briefing.sqf";

under the assumption that the init.sqf would start the kill handler to refer to playerkilled.sqf which would then execute the briefing.sqf at the time of player death and show the briefing tabs....no dice. 

On a wing and a prayer I through the same _KilledHandler line of code to initPlayerLocal.sqf thinking maybe that would work. Nope. No luck there either. I'm at my wits end. I really hope someone comes up with an idea. 

Update: After that didn't work I changed the "onplayerkilled.sqf" file name to "onPlayerRespawn.sqf" just to see if that would change things.  It didn't.  I then tried placing the following:

addEventHandler ["respawn", {_this exec "briefing.sqf"}]

In the init.sqf but that didn't work either. 

Edited by fifthmanstanding

Share this post


Link to post
Share on other sites

Been looking for an answers and was testing things myself a bit, in the end I found a solution for this.

null =[] execVM "briefing.sqf"; // Briefing and Rules


Add  this at the beginning of your ExileClient_object_player_initialize . Don't forget to remove any briefing init from other files such as init,initplayerlocal and initserver.

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.