Page 1 of 1
Make Ai crouch
Posted: Wed Aug 25, 2004 6:12 am
by Sims
Hi i was wondering how to make AI in SP crouch or lie down.
Thanks in advance.

Posted: Wed Aug 25, 2004 8:31 am
by jv_map
self exec global/crouch.scr

How do you apply it tho?
Posted: Thu Aug 26, 2004 7:36 am
by Weltkrieg zwei
i am no good with Ai or scripting, so how do you apply it to 1 or more Germans?
Posted: Thu Aug 26, 2004 3:49 pm
by lizardkid
do the command to more than one you'd jsut have to repeat the command.
there's also a way to make them crouch run toward pathnodes,,
Code: Select all
// AI crouching code
$myguy walkto path1
// that makes myguy walk simply to the pathnode targetnamed path1
$myguy2 runto path2
// makes myguy2 run to path2 pathnode
$myguy crouchto path3
// makes the third guy crouch run to the path3
$myguy1 exec global/crouch.scr
$myguy2 exec global/prone.scr
$myguy3 exec global/stand.scr
/*those three made the respective ai go int othe said stances, crouched, prone (flat on his belly) and standing from crouching.*/
you'll need to create the pathnodes and ai for this, ai with the targetnames and pathnodes with the targetnames, as always you can change these names to whatever you want.

Posted: Fri Aug 27, 2004 7:46 am
by Weltkrieg zwei
Yeah but how do i apply it to the AI
Key and Value please

Posted: Mon Jan 31, 2005 9:50 am
by sg.Pepper
hi,
you must give to you ai (key) targetname and (value) myguy1,2,3
Posted: Mon Jan 31, 2005 7:57 pm
by lizardkid
well this is my bad, but this topic is sorta old.
Fri Aug 27, 2004 10:46 am
