Thread: ***HELP***
View Single Post
Finally
Old
  (#4)
jv_map is Offline
Senior Member
 
Posts: 238
Join Date: Sep 2002
Location: Where I wanted to go today
  Send a message via MSN to jv_map  
Default Finally - 12-11-2002, 11:26 AM

[code:34d5a]
main:
exec gloal/friendly.scr

level waittill prespawn

level waittill spawn

$player item weapons/colt45.tik
$player item weapons/M1_garand.tik
level.script = "maps/test_test.scr"
$german_respawn thread german_respawn
end

german_respawn:
local.german = self
while(1)
{
// 'while' loops the iteration as long as the condition is met, 1 is always met
local.german waittill death
local.german = spawn models/human/wehrmact_soldier.tik
local.german.enableEnemy = 0 // don't attack enemies when running to the path node
local.german runto $respawn_location
local.german waittill movedone
local.german.enableEnemy = 1
// restart iteration
}
end
[/code:34d5a]

To spawn an Allied soldier, just change the line
local.german = spawn models/human/wehrmact_soldier.tik
to a line that spawns an allied model, so look up a model TIKI in pak0.pk3 and use that instead.
  
Reply With Quote