exec global/ai.scr and minefieild script not working

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

exec global/ai.scr and minefieild script not working

Post by lizardkid »

i gotta stop posting these odd questions that no one else experiences....

ok, so i have a pretty big map, tons of LOD, hedgehogs, etc.
my main problem is the script. everything but two exec files work fine.

exec global/minefield.scr
exec global/ai.scr

this only happened recently, before now it worked fine, but i reinstalled my SH because of Vis troubles and now only those two exec/globals get me.

here's the script, iv looked it over so many times my head hurts, i couldn't find anthing.

Code: Select all

main:

exec global/ai.scr
exec global/loadout.scr maps/BCDA/test_bcda1.scr 
exec gloal/friendly.scr
exec global/minefield.scr
exec global/weather.scr


level waittill prespawn

exec global/ambient.scr test_bcda1

level waittill spawn

level.script = "maps/BCDA/test_bcda1.scr"

thread weaponry

end
///////////////////////PLAYER////////////////////

weaponry:

$player fullheal
$player takeall

$player item weapons/colt45.tik
$player item weapons/springfield.tik
 
$player ammo pistol 81 
$player ammo rifle 100				
waitthread global/items.scr::add_item "explosive"           noprint


end

PLAYER_JEEP_Drive:

//$oss_man "origin" "0 0 0"

//$oss_driver "origin" "5080 -4240 14"
//$oss_driver bind $playerjeep

level.slowspeed = 150
level.fastspeed = 250 
level.lookahead = 256

level.grillo = $oss_driver //our lovable Grillo

level.playerjeep = $playerjeep //our jeep

$player takeall
$player fullheal

level.playerjeep thread global/vehicles_thinkers.scr::PLAYER_JEEP_CONTROLLER

level.playerjeep drive $t1 level.fastspeed 40 200 level.lookahead  
level.playerjeep waittill drive
level.playerjeep stop //stops jeep at last waypoint

end

//////////////////////JACQUES LE ROUGE///////////////////

Jacques:


$oss_man turnto $player
$oss_man lookat $player
iprintlnbold_noloc  "Great, you made it."
wait 2
iprintlnbold_noloc "get in, we still have to go a long way."
wait 2.5
iprintlnbold_noloc "you take the gun, i'll drive."
wait 1.5

$oss_man runto $jeeppath1

$playerjeep_trigger triggerable
end


/////////GERMANS////////////////////////////////////////


patrol1:

spawn models/human/german_waffenss_officer.tik "targetname" "patofficer" "origin" "5204.40 -6067.60 128.00"

spawn models/human/german_waffenss_shutze.tik  "targetname" "patshut1" "origin" "5276.41 -6115.59 128.00"
spawn models/human/german_waffenss_shutze.tik  "targetname" "patshut2" "origin" "5272.00 -6000.00 128.00"

spawn models/human/german_wehrmact_soldier.tik "targetname" "patsoldier1" "origin" "5372.40 -6115.60 128.00"
spawn models/human/german_wehrmact_soldier.tik "targetname" "patsoldier2" "origin" "5372.00 -6004.00 128.00"

//that just spawned the patrol at their certain spots. now they will walk on their patrol route.

$patofficer walkto patroute1
$patshut1 walkto patroute 2
$patshut2 walkto patroute 3	//we're walking, we're walking.
$patsoldier1 walkto patroute 4
$patsoldier2 walkto patroute 5

end
dunno if there's anything horribly wrong there, i couldn't find anything.

help would be greatly appreciated!!! :wink: :)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Patch

Post by tltrude »

Did you reinstall the patches? Also, shouldn't "level.script = "maps/BCDA/test_bcda1.scr" be in prespawn?

Use a stock script as a guide.
Tom Trude,

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

Post by lizardkid »

perhaps so, thanx Tom, i used a tut script as a starting point , mostly with the main thread.
later........

yes, the stock maps did point me the right way, at least t2l1 did, :wink: thanx once more Tom! :)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

level waittill prespawn
exec global/minefield.scr

simple as that you put it in the wrong spot,move it down to after
level waittill prespawn
Post Reply