BT stock map addon problems.

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

BT stock map addon problems.

Post by lizardkid »

well, for some reason a perfectly sane script that's worked for my custom maps isn't working for a stock map. what i want is....

a team of rangers to spawn at the start of the map and follow the player. thus he has a team. they'll follow him just like the brits in t1l2. (SH map 2)

the map is e3l4 (last BT map, my favvy!)

the code i've added is at the end of main, so it calls the thread right before ending main. it goes exactly like this, btw this is perfectly functional in my own maps, i've no idea why it won't work.....

Code: Select all

spawn models/human/1st-ranger_private.tik "$targetname" "friendly1"
spawn models/human/1st-ranger_private.tik "$targetname" "friendly2"
spawn models/human/1st-ranger_sergeant.tik "$targetname" "friendly3"
spawn models/human/1st-ranger_captain.tik "$targetname" "friendly4"

friendly1.targetname = Montgomery
friendly2.targetname = Jameson
friendly3.targetname = Wilson
friendly4.targetname = cappy

//all others use default weaponry. 
$Wilson.gun = bar

$cappy.accuracy = 75 //best. besides player.
$Wilson.accuracy = 60 //sergeant, toughie. not as good as cappy though.
$Jameson.accuracy = 45 //private
$Montgomery.accuracy = 45 //private

$cappy.health = 300
$Wilson.health = 290
$Jameson.health = 280
$Montgomery.health = 280

$cappy.destination = $player
$Wilson.destination = $cappy
$Montgomery.destination = $cappy
$Jameson.destination = $cappy	

$cappy.frienddtype = 1
$Wilson.friendtype = 1
$Montgomery.friendtype = 1
$Jameson.friendtype = 1

$cappy.distance = 150
$Wilson.distance = 100
$Montgomery.distance = 100
$Jameson.distance = 100


$cappy thread global/friendly.scr::friendlythink
$Wilson thread global/friendly.scr::friendlythink
$Montgomery thread global/friendly.scr::friendlythink
$Jameson thread global/friendly.scr::friendlythink
help? :? thanx.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

friendly1.targetname = Montgomery
friendly2.targetname = Jameson
friendly3.targetname = Wilson
friendly4.targetname = cappy

What's friendly1 etc? Shouldn't it be $friendly1 instead? :idea:
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

*slaps forehead*

doh!
of course!
*shakes head at self*
sorry, i didn't catch that. :oops:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

That's why you should always check your console for errors :wink: mohaa would've catched it 8-)
Image
Post Reply