Jump to content
Sign in to follow this  
WhiteMistral

How do I input Execute code on players as Zeus?

Recommended Posts

Hello everybody!

 

You know how you can input a command to an AI as Zeus, in the Execute line, such as "_this allowDamage false;" ?

How do you do that to players individually? I'm testing commands through the debug console and either it affects everyone or nobody. I've also tried Target debugging as is possible, but something such as "make screen blurry" only lasts about two seconds and goes back to normal. As well, commands like "_this allowDamage false;" "player allowDamage false;" et cetera do not work in Target Execution.

 

I want to be able to modify players seperately, and change things as Zeus, instead of adjusting all players. Please help me with this!

Share this post


Link to post
Share on other sites

One of the easiest ways is to put an if block around a command that you send to everyone.

if ("Taj" find (name player) > -1) then { .... };

 

Or you could assign variables to players so you can more easily target them afterwards.

 

 

simply aim at someone and run this locally:

hans = cursorObject; publicVariable "hans";

 

In fact there are lots and lots of different ways how you could handle this. It really isn't hard.

This can be quite useful too:

https://community.bistudio.com/wiki/allPlayers

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  

×