How to get CPU player number?

Everything about Modding TE2013, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

How to get CPU player number?

Postby antimouse » 04 Aug 2014, 06:41

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!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: How to get CPU player number?

Postby antimouse » 20 Aug 2014, 23:20

Manutoo, any tips? ':D
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: How to get CPU player number?

Postby manutoo » 21 Aug 2014, 04:08

Hello,

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

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: How to get CPU player number?

Postby antimouse » 23 Aug 2014, 20:26

Thank you very much Manu!
Worked like a charm :)
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05


Return to Modding - TE2013

Who is online

Users browsing this forum: Bing [Bot], suvurvius and 17 guests