Post your scripting questions / solutions here
Moderator: Moderators
-
Lillemann1993
- Lance Corporal
- Posts: 10
- Joined: Thu Dec 11, 2008 4:46 pm
Post
by Lillemann1993 »
Hello everyone and Merry Christmas
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!
-
Lillemann1993
- Lance Corporal
- Posts: 10
- Joined: Thu Dec 11, 2008 4:46 pm
Post
by Lillemann1993 »
That helped me a it but there was no .map file with it so I can copy things in the map to my map...
-
Lillemann1993
- Lance Corporal
- Posts: 10
- Joined: Thu Dec 11, 2008 4:46 pm
Post
by Lillemann1993 »
Anyway, I got it to work yesterday but when I tested it again next day it dident work, it says:
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 »
Simple, you deleted downloaded pk3 with all sitting scripts from global... you need them, so download them again.