Wondering how I can make a script that will kick a player if they do something in a trigger's activation field?
Do I use serverCommand? If so how?
Wondering how I can make a script that will kick a player if they do something in a trigger's activation field?
Do I use serverCommand? If so how?
Generic and will need certain conditions if used in a trigger, not sure if it would even work in a trigger.Code:serverCommand format ['#kick %1', name player];
Yeah I'll put it in a script then, not trigger.
Isn't working (from an SQF).Code:serverCommand format ['#kick %1', name player];
At all. Just won't work.
If not working, then try thisCode:serverCommand format ["#kick %1", name player];
I had a typo in my last post, It also may only work on a server.Code:serverCommand format ["#exec kick %1", name player];
Yeah I made a solution that just gives that client endGame.
Probably this http://community.bistudio.com/wiki/forceEnd
And then just specify what you want the trigger to check. E.g
condition: (rating player < -1000)
on act: forceEnd
Edit: or this http://community.bistudio.com/wiki/endMission
Or this http://community.bistudio.com/wiki/failMission
Apologies, but I had found those in my initial search... maybe I'm misunderstanding how the triggers work then. Wouldn't a trigger set up as you describe end the mission for all players when any one player's rating fell below -1000? I don't see any of those three functions taking any parameters (a player object, for example). Is the trigger system somehow aware that the forceEnd only applies to the player that tripped the condition?