Jump to content
Sign in to follow this  
Majestyk

SQF and command not working on Scenario

Recommended Posts

I'm trying to make a scenario with disabled fatigue. When I'm creating the scenario and enter the command to disable fatigue in the debug console it works. However when I create a InitPlayerLocal.sqf with the player enableFatigue false; command and place it in the mission folder in documents and then I run the scenario the fatigue is still enabled. I also tried adding this command to the specific unit and it still didn't work.

Share this post


Link to post
Share on other sites

Ensure the following:

1. Script with your command executing (systemChat "Hello, World!");

2. Player become initialized before enableFatugue command (waitUntil {!(isNull player)});

3. Since 1.54 fatigue replaced by stamina, enableStamina command.

Share this post


Link to post
Share on other sites

Ensure the following:

1. Script with your command executing (systemChat "Hello, World!");

2. Player become initialized before enableFatugue command (waitUntil {!(isNull player)});

3. Since 1.54 fatigue replaced by stamina, enableStamina command.

 

 

Embrace Eden:

 

t6QZIF5.jpg

Thanks, I will try out these two methods

Share this post


Link to post
Share on other sites

Embrace Eden:

 

t6QZIF5.jpg

Just un-ticked the Enable Stamina check box, tried and the stamina is still on

Share this post


Link to post
Share on other sites

Ensure the following:

1. Script with your command executing (systemChat "Hello, World!");

2. Player become initialized before enableFatugue command (waitUntil {!(isNull player)});

3. Since 1.54 fatigue replaced by stamina, enableStamina command.

 

 

Embrace Eden:

 

t6QZIF5.jpg

Well it works now, but when I disable all mods. However while having enabled ACE, RHS's and few other mods the stamina would still be enabled, and would only disappear if I entered player enableStamina false; in debug

Share this post


Link to post
Share on other sites

Well it works now, but when I disable all mods. However while having enabled ACE, RHS's and few other mods the stamina would still be enabled, and would only disappear if I entered player enableStamina false; in debug

 

Just a wild guess, but it could be the ACE modifies the stamina postInit. Eden expressions are called before that.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×