![]() |
***HELP***
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) |
Something similar
[url=http://dynamic5.gamespy.com/~mmm/forum/viewtopic.php?t=39:91f6e]The secret MmM forums[/url:91f6e]
|
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!!! |
Finally
[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. |
All times are GMT -6. The time now is 06:54 AM. |
Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.