okay, i've got this really annoying thing happening. i can make a script no problem, and if i only use one thread (for guns) it all works as intended. including minefields and other stuff.
but if i use anything else in that thread or try to make another thread that has more complex stuff, (like leashing an AI to the player) it doesn't do any extra threads.
this only happened recently and as far as i know, i haven't ripped apart any files lately.....
sorry if this is a stupid question but it's kind of weird, not being able to call threads unless they're about guns or a simple println.
script not working unless only one thread is there
Moderator: Moderators
script not working unless only one thread is there
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
script
Well, it will be very hard for anyone to help without seeing what you are talking about.
oh, sorry.
i've got to stop rushing these things...
okay, i've got a small map with the player an Axis guy with four wehrmact soliers that i want to follow him around. there's a bunch of soviets at the end of a hallway that i'm trying to give guns. the script looks like this.
now i'm probably missing something but this has happened in every map i'm doing now.
if it's relevant i use worldspawn's key/value
script - test_germancamp.scr
i've made sure everything fits, so that the name of the map isn't test_germancamp1 or something, the script and map are saved in the same file, and it should all work......
any help would be greatly appreciated.
i've got to stop rushing these things...
okay, i've got a small map with the player an Axis guy with four wehrmact soliers that i want to follow him around. there's a bunch of soviets at the end of a hallway that i'm trying to give guns. the script looks like this.
Code: Select all
main:
exec global/ai.scr
exec global/loadout.scr maps/test_germancamp.scr
exec gloal/friendly.scr
level waittill prespawn
$player german
exec global/ambient.scr test_germancamp
level waittill spawn
level.script = "maps test_germancamp.scr"
$player model player/german_wehrmact_nco.tik
thread guns
thread sovs
thread soldiers
end
guns:
$player german
$player fullheal
$player takeall
$player item weapons/p38.tik
$player item weapons/mp40.tik
$player ammo pistol 80
$player ammo smg 200
$player useweaponclass smg
waitthread global/items.scr::blank_items
end
soldiers:
//gives the player four tag-alongs.
level.friendly1.targetname = friend1
level.friendly2.targetname = friend2
level.friendly3.targetname = friend3
level.friendly4.targetname = artillery
// Tells the AI to move to the player
$friend1.destination = $player
$friend2.destination = $player
$friend3.destination = $player
$artillery.destination = $player
// Sets the type of friendly soldier
$friend1.friendtype = 1
$friend2.friendtype = 1
$friend3.friendtype = 1
$artillery.friendtype = 1
// stagger how far away they keep from their destinations
$friend1.distance = 175
$friend2.distance = 225
$friend3.distance = 250
$artillery.distance 300
// setup the friendlies to follow the player...
$friend1 thread global/friendly.scr::friendlythink
$friend2 thread global/friendly.scr::friendlythink
$friend3 thread global/friendly.scr::friendlythink
$artillery thread global/friendly.scr::friendlythink
$friend1 tether $player
$friend2 tether $player
$friend3 tether $player
$artillery tether $player
end
sovs:
$sovfighter1 item weapons/mosin_nagant_rifle.tik
$sovfighter2 item weapons/mosin_nagant_rifle.tik
$sovfighter3 item weapons/mosin_nagant_rifle.tik
$sovcorp item weapons/ppshsmg.tik
$sovofficer item weapons/nagant_revolver.tik
$sovfighter1 mood alert
$sovfighter2 mood alert
$sovfighter3 mood alert
$sovcorp mood alert
$sovofficer mood alert
end
if it's relevant i use worldspawn's key/value
script - test_germancamp.scr
i've made sure everything fits, so that the name of the map isn't test_germancamp1 or something, the script and map are saved in the same file, and it should all work......
any help would be greatly appreciated.
Moderator
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006
۞
Abyssus pro sapientia
Olympus pro Ignarus
۞
AND STUFF™ © 2006

