Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   some ai questens (https://postpacific.loc-online.com/showthread.php?t=7515)

moon 08.05.2007 09:20

some ai questens
 
can any one explain me the code

talker.param2 = ( talker.param2 + 1 );

and

talker.param2 = 0;

and

talker.param1 = gg->Rand(3);

Tanks

humordwarf 08.05.2007 09:38

the code is very explainable:

talker.param2 = ( talker.param2 + 1 ); //here param2 incraeases by 1
talker.param2 = 0; //here param2 resetz to zero
talker.param1 = gg->Rand(3); //and here randum vaue from 0 to 2 writez to param1

Rockets, Guns

moon 09.05.2007 03:49

thanks humordwarf


All times are GMT. The time now is 15:49.