Page 1 of 1

How to get CPU player number?

PostPosted: 04 Aug 2014, 06:41
by antimouse
Hello all,

I managed to get my player ID number with the following piece of code:

Code: Select all
SlideCfg /WT_Intern/HumanNum 0 /WT_Intern/NbPlayer-1 !Negative
GetHumanTourNum /Intern/P2Face /WT_Intern/HumanNum


I was playing with Federer and he got the correct number.

However, I don't know how to get the number of my current CPU opponent. Is there an equivalent to /WT_Intern/HumanNum that can be applied to computer-controlled players?

Thank you!

Re: How to get CPU player number?

PostPosted: 20 Aug 2014, 23:20
by antimouse
Manutoo, any tips? ':D

Re: How to get CPU player number?

PostPosted: 21 Aug 2014, 04:08
by manutoo
Hello,

if you want to do that during a match, then use "/InGame_p2/TourNum" .

Re: How to get CPU player number?

PostPosted: 23 Aug 2014, 20:26
by antimouse
Thank you very much Manu!
Worked like a charm :)