Jump to content
Sign in to follow this  
fortun

Command to look if something (If true) for another player?

Recommended Posts

Hello, doing some mission bug testing. However, is it any command so i can do the same as

If (task1complete) then {hint "blabla"} but for another player and not me? 

Like

Player2 If (task1complete) then {hint "blabla"}

Share this post


Link to post
Share on other sites

How would i do it? To go in to the problem a bit more.

I have a security check in my mission. From beginning, i have

Check1 = true
Check2 = true
Check3 = true

And for every task the players make, it sets it to

Check1/2/3 = false  

If any is of the "Checks" it true in the end of mission, in a trigger it will then kill the players if they has skipped the task/checks..

It seems to work great, unless they stop and use "Save & Exit game" and then resumes it. Then the Checks that have been set to false (to not kill players), will only be made for the Host of the server, not for the other player (Player2. Which then bugs the mission as it kills everyone in the end because Player2 didn't sync the "Checks", only the host.

Edited by FortuN

Share this post


Link to post
Share on other sites
if ((player == player2) and (task1complete)) then { hint "shows up only for player2 when task1 is completed }

Share this post


Link to post
Share on other sites

Thanks guys.

However, when using publicvariables, it seems it doesen't work.

If i use

publicvariable "task1complete" and then after

if (task1complete) then {hint "works"}; 

I don't get anything.

Share this post


Link to post
Share on other sites

You have to use publicVariable after you change the value.

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  

×