Data Realms Fan Forums
http://45.55.195.193/

Fixing default AI mode in b24 multiplayer?
http://45.55.195.193/viewtopic.php?f=73&t=22105
Page 1 of 1

Author:  irksomesloth [ Tue Mar 22, 2011 7:34 am ]
Post subject:  Fixing default AI mode in b24 multiplayer?

in b24 after exiting editing mode the actors for both teams are always set to brainhunt mode rather than sentry mode. is there a snippet or something i can change in the skirmish defense and brain vs brain scripts to fix this?

Author:  Roast Veg [ Tue Mar 22, 2011 7:01 pm ]
Post subject:  Re: Fixing default AI mode in b24 multiplayer?

Well, this is hardcoded, but you could add the lines under the Create function for those scripts:
Code:
for actor in MovableMan.Actors do
    actor.AIMode = Actor.AIMODE_SENTRY;
end


Might get some freaky results though.

Author:  irksomesloth [ Tue Mar 22, 2011 11:41 pm ]
Post subject:  Re: Fixing default AI mode in b24 multiplayer?

already tried putting that in the update function. did nothing

Author:  Roast Veg [ Wed Mar 23, 2011 6:35 pm ]
Post subject:  Re: Fixing default AI mode in b24 multiplayer?

Worked for me in Create after the editing mode code, but some scripted actors had issues with it.

Author:  irksomesloth [ Thu Mar 24, 2011 4:46 am ]
Post subject:  Re: Fixing default AI mode in b24 multiplayer?

could you give an exact point cause that's not working for me

Author:  Asklar [ Sat Mar 26, 2011 3:08 am ]
Post subject:  Re: Fixing default AI mode in b24 multiplayer?

Wasn't it actor.AIMode = 1 for sentry?

Author:  irksomesloth [ Sun Mar 27, 2011 12:15 am ]
Post subject:  Re: Fixing default AI mode in b24 multiplayer?

yes but AIMODE_SENTRY is a constant for aimodes and is equal to 1 so it also works just as well

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/