Alliedassault           
FAQ Calendar
Go Back   Alliedassault > FPS Gaming General Discussion > MoH Maps, Mods & Skins
Reload this Page ***HELP***
MoH Maps, Mods & Skins Discuss custom maps, skins and mods here.

Reply
 
Thread Tools Display Modes
***HELP***
Old
  (#1)
Mo is Offline
Member
 
Posts: 80
Join Date: Nov 2002
   
Default ***HELP*** - 12-08-2002, 07:08 AM

How do you create (in a single player map) a enemy/ally to spawn at a position and then run to a position, so when they are killed they just reappear and run to the position again, and again....... Please include both mapping details and scripting details.
I was also wondering how you build a good chain-link fence.
Thanks.
(I'm about to give up this whole level designing phase)
  
Reply With Quote
Something similar
Old
  (#2)
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 Something similar - 12-08-2002, 11:33 AM

[url=http://dynamic5.gamespy.com/~mmm/forum/viewtopic.php?t=39:91f6e]The secret MmM forums[/url:91f6e]
  
Reply With Quote
Old
  (#3)
Mo is Offline
Member
 
Posts: 80
Join Date: Nov 2002
   
Default 12-08-2002, 08:43 PM

Okay this is what my script turned out to look like;

//SCRIPTING: Mo
main:
exec global/ai.scr
exec global/loadout.scr maps/test_test.scr
exec gloal/friendly.scr

level waittill prespawn

exec global/ambient.scr test_test

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 4

end

german_respawn local.times:
local.german = self
for(local.time = 1; local.time <= local.times; local.time++)
{
// loop the iteration for local.times times
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

Could you, in two seperate scripts show me:
1) How to create a second enemy spawner
2) How to create allied spawners.

And what is the maximum number of spawns you can have (can you have unlimited, how?)

Thanks.

P.S Anyone know how to create a chainlink fence!!!
  
Reply With Quote
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, 12:26 PM

[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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.