Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.05.2007, 09:20   #1
moon
Архивный участник
 
Join Date: Jul 2006
Posts: 66
Default 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
moon is offline  
Old 08.05.2007, 09:38   #2
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

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
humordwarf is offline  
Old 09.05.2007, 03:49   #3
moon
Архивный участник
 
Join Date: Jul 2006
Posts: 66
Default

thanks humordwarf
moon is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:21.