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

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Lillemann1993
Lance Corporal
Posts: 10
Joined: Thu Dec 11, 2008 4:46 pm

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

Post 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!
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

You can get an example map of getting them to sit here:

http://www.freewebs.com/axion9/tutorials.htm
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Lillemann1993
Lance Corporal
Posts: 10
Joined: Thu Dec 11, 2008 4:46 pm

Post 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...
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post 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
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Lillemann1993
Lance Corporal
Posts: 10
Joined: Thu Dec 11, 2008 4:46 pm

Post 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
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post 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.
Post Reply