Forum Jump :

Author Message


Posts: 146
Rank:


Level: Member

Country: my
Location: Sabah
Occupation: No Occupations
Age: 19
In-game name: Phantom_Wolf

 
#186063 Posted at 2016-01-31 08:25        
     
First, make sure you already DISABLED THE TEMPLATE IN DESCRIPTION.EXT!

nul = spawn {
disableserialization;
null = {waituntil {!alive player};
call BIS_fnc_respawnMenuInventory;
call BIS_fnc_showRespawnMenu;
waitUntil {alive player};
waitUntil {!alive player};
waitUnitl {alive player};
call ace_spectator_fnc_setSpectator;

};

But i don't think you need to call showRespawnMenu, because a look at respawnMenuInventory shows that there is a code that calls showRespawnMenu.

On the other hand, using the spawn command is a great way to 'start a new script' without another SQF. For example, if i want to make a very short script to run when the player dies in the init, i could use spawn instead of making an SQF and using execVM. The spawn command also does not interfere with the script meaning if you put spawn on top of your init and a delay inside spawn, the script inside spawn will wait, while the rest of the init loads normally.

I have no signature.