Page 1 of 1

How to make AI's sitt down on a chair?

Posted: Fri Dec 19, 2008 10:43 pm
by Lillemann1993
Hello everyone and Merry Christmas :D

Well... I can make germans to play poker but not how to make them sit only on a chair and do... nothing special, operating a radio or whatever...

Can you tell me how I should plave the AI's and targetnames and what I gonna spawn etc?

Thanks for the help!

Posted: Fri Dec 19, 2008 11:48 pm
by $oldier Of Ra
You can get an example map of getting them to sit here:

http://www.freewebs.com/axion9/tutorials.htm

Posted: Sat Dec 20, 2008 12:27 am
by Lillemann1993
$oldier Of Ra wrote:You can get an example map of getting them to sit here:

http://www.freewebs.com/axion9/tutorials.htm
That helped me a it but there was no .map file with it so I can copy things in the map to my map...

Posted: Sat Dec 20, 2008 7:51 am
by $oldier Of Ra
Hmm, that's odd... Have you tried the busy tutorial? I think it does something very similar. Map file included. :)

http://smallsumo.punkassfraggers.com/mo ... orials.htm

Posted: Sat Dec 20, 2008 2:06 pm
by Lillemann1993
$oldier Of Ra wrote:Hmm, that's odd... Have you tried the busy tutorial? I think it does something very similar. Map file included. :)

http://smallsumo.punkassfraggers.com/mo ... orials.htm
Anyway, I got it to work yesterday but when I tested it again next day it dident work, it says:

Code: Select all

Cant find global/sit.scr

Code: Select all

Cant find global/write.scr

Code: Select all

Cant find global/listen.scr
My script is:

Code: Select all

main:

exec global/ambient.scr 
exec global/ai.scr

level waittill prespawn

wait 2
$player stufftext "tmstartloop sound/music/mus_06a_mystery.mp3"

level waittill spawn

$player item weapons/silencedpistol.tik 
$player ammo pistol 1000
$player useweaponclass pistol

thread disguise
thread sitter

disguise: 
$trigger waittill trigger 
$suit remove 
$papers remove 
iprintlnbold "Show your papers when asked."
local.key = getboundkey1 "toggleitem"
iprintlnbold_noloc (loc_convert_string "Press the ( ") local.key (loc_convert_string " ) key to show your papers.")
$player playsound pickup_papers 
$player playsound pickup_uniform 
waitthread global/items.scr::add_item "papers_level1" 
waitthread global/items.scr::add_item "uniform" 
end

sitter:

	$sit_guy thread global/sit.scr::sitting
end

Posted: Mon Dec 22, 2008 10:04 pm
by Aprop
Lillemann1993 wrote:

Code: Select all

Cant find global/sit.scr

Code: Select all

Cant find global/write.scr

Code: Select all

Cant find global/listen.scr
Simple, you deleted downloaded pk3 with all sitting scripts from global... you need them, so download them again.