Quick Q - DM and SP maps

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
*GCC*Nigel
Second Lieutenant
Posts: 169
Joined: Sun Dec 04, 2005 5:13 am

Quick Q - DM and SP maps

Post by *GCC*Nigel »

I'm having problems getting a basic ai to work. I can get them to spawn, but the stand and make faces. One moved when I chucked a grenade at his face, but got stuck halfway into his running animation and just died when the grenade went off. I have my map in with all my DM maps, is that all right? Any other advice is appreciated.


CAUTION: didn't take the time to shrink and left as .bmp
Image
//AI Tut
//script and map by blue60007
exec global/ai.scr //starts up the ai stuff
waittill prespawn
waittill spawn
$player item weapons/mp40.tik//give player the MP40?
$player ammo smg 128//give player 128 rounds of SMG ammo
$player useweaponclass smg//switch to the SMG
//spawn #set #group when corresponding #set is triggered
thread global/ai.scr::spawngroup #1 #1
thread global/ai.scr::spawngroup #1 #2
thread global/ai.scr::spawngroup #1 #3

//trigger set 100
trigger100:
//spawns all AI with #set/100
thread global/ai.scr::spawnset 100 spawn100
end
I just copied Lizard Kid (Reptillian Mappers's) script ... I don't see anything about connection the script to the map, and I noticed I didn't get any weapons at start? I named my map "SHaiTest". All this scripting stuff is foreign to me, I want my old DM standard script back...
Stein Auf
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

AI

Post by tltrude »

AI don't normally work outside of singleplayer. However, you can turn them into "bots" -- see "bots" forum.
Tom Trude,

Image
Post Reply