Make Ai crouch

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
Sims
Private
Posts: 1
Joined: Wed Aug 25, 2004 6:09 am
Location: Melbourne, Australia

Make Ai crouch

Post by Sims »

Hi i was wondering how to make AI in SP crouch or lie down.
Thanks in advance. :)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

self exec global/crouch.scr :)
Image
Weltkrieg zwei
Private
Posts: 7
Joined: Thu Aug 26, 2004 7:33 am

How do you apply it tho?

Post by Weltkrieg zwei »

i am no good with Ai or scripting, so how do you apply it to 1 or more Germans?
In Weltkrieg zwei 60 million people lost there lives.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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. :wink:
Weltkrieg zwei
Private
Posts: 7
Joined: Thu Aug 26, 2004 7:33 am

Post by Weltkrieg zwei »

Yeah but how do i apply it to the AI :oops:
Key and Value please :D
In Weltkrieg zwei 60 million people lost there lives.
sg.Pepper
Second Lieutenant
Posts: 152
Joined: Tue Jan 13, 2004 2:47 pm
Location: Czrch Republic
Contact:

Post by sg.Pepper »

hi,
you must give to you ai (key) targetname and (value) myguy1,2,3
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

well this is my bad, but this topic is sorta old.
Fri Aug 27, 2004 10:46 am
:wink:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Post Reply