_SeveN_ 0 Posted May 25, 2006 If im the leader (P1) in MP and ive got another soldier (P2) in my group, how can i know that P2 is AI or another Player. So: i have two script: AI.sqs and Player.sqs ? _soldier == player : [_soldier] exec "player.sqs" ? _soldier != player : [_soldier] exec "ai.sqs" than in my machine P1 will run "player.sqs" and P2 will run "ai.sqs" but on P2s machine P1 will run "ai.sqs" and P2 will run "player.sqs" I would like to do that if P2 local run "player.sqs" than at P1s local dont run "ai.sqs". Becouse if i know well soldiers are local on every client. I hope u can undnerstand it and sorry for my english. Share this post Link to post Share on other sites
klamacz 448 Posted May 25, 2006 afaik there is 'local' command. you can use it to check if player is local to a computer Share this post Link to post Share on other sites
_SeveN_ 0 Posted May 25, 2006 afaik there is 'local' command. you can use it to check if player is local to a computer Hi! Thats OK. Thx. My problem is that on every client has differen local player. On my computer P1 is local player and P2 is an ai. And the same time on P2s computer P2 is local player and P1 is an AI. P2 runs two script : one "player.sqs" on P2s computer and one "ai.sqs" on P1s computer. maybe im too complicated, but i cant tell u better in english. sorry Share this post Link to post Share on other sites
TeRp 1 Posted May 25, 2006 If I remember correctly, if you are the group leader and your group members are AI, they are local to your machine. If one of your group members is played by another player, the soldier is local to this players machine. So if you're the group leader, execute the following script on your machine: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ?(local p2): hint "P2 is controlled by the AI" ?(!local p2): hint "P2 is controlled by another player". Share this post Link to post Share on other sites