Page 1 of 1

AI movement script

Posted: Wed Nov 14, 2007 5:56 pm
by mr_penguin
Does anyone know how to make ai move using scripts?

Posted: Wed Nov 14, 2007 7:11 pm
by _sweeney_
mr penguin eh??

and i think you want ai zones but iiiiiiiiiiiidk

just thought i recognized you :wink:

Posted: Wed Nov 14, 2007 7:26 pm
by mr_penguin
I have working zones but the ai still run randomly and walk into walls so I thinking of a way to make ai run a strain line to a zone.

Posted: Thu Nov 15, 2007 11:18 am
by grimdoomer
if they hit walls did you transfer unkown 16???? if not then that would be your problem.

Posted: Thu Nov 15, 2007 12:39 pm
by mr_penguin
the map won't load without unknown 16 (offset 212)

Posted: Thu Nov 15, 2007 5:04 pm
by fuzzman
i have the same problem, i have not gotten it to work either. i just get the black screen

Posted: Thu Nov 15, 2007 5:06 pm
by mr_penguin
the black screen is a bad sound file. When I don't add 212 the game freezes in the lobby.

did you use h2core or entity?

Posted: Thu Nov 15, 2007 5:10 pm
by fuzzman
so with the blackscren, if i just null the sounds in the sbsp, it might work?

anyway, yes i use h2core, and my map rebuilds successfully, but when i load the map even without ai enabled in yelo, the game freezes with a black screen

Posted: Fri Nov 16, 2007 3:00 pm
by mr_penguin
did you null the sounds in the ai? and you may want to redo the mod as long as its just the ai you added and didn't do anything else.

Posted: Fri Nov 16, 2007 3:40 pm
by grimdoomer
use a clean map decompile to a clean directory decompile your SP map first then your MP map, umm after rebuild test to see if it works, if it doesent then you might be doing something wrong. If you need any more help hit me up on AIM at xXplayerificXx ill be on to about 3 AM eastern right now its 6:30PM

Posted: Sun Nov 18, 2007 3:36 pm
by fuzzman
alright thanks

Posted: Mon Nov 19, 2007 11:49 am
by Agent ME
To make AI move intelligently, you need to use AI zones, not scripts (though scripts are useful for spawning the AI).

Though there is a script command, I think it was cs_move, that can make a biped move in a specific direction for a certain distance/time. Useless if you want to make AI to fight against, but perfect if you want a choreographed-dancing AI group.

Posted: Mon Nov 19, 2007 11:51 am
by grimdoomer
the reason it freezes in the lobby is because you have a zones set but you dont have offset 212, if you simplay took the zone out then it would work.

Posted: Mon Nov 19, 2007 12:28 pm
by fuzzman
i guess that makes scence but whenever i take offset 212 from outskirts and inject it to my map with H2core+ Guerrila, my map freezes with or without ai enabled

Posted: Mon Nov 19, 2007 12:55 pm
by grimdoomer
fuzzman ill try to help you on AIM

Posted: Wed Nov 21, 2007 11:41 am
by fuzzman
alright, my sn is xthefuzzmanx

Posted: Wed Nov 21, 2007 12:08 pm
by grimdoomer
mr_penguin need some help send me your screen name if you have one, I can help you faster cus i dont come to the forums that often.