Jump to content

Basic Spawn timer


soaren

Recommended Posts

I'm trying to get waves of enemies working however, I can't even get a few to spawn without any conditions (so why bother with the timer until I figure this out):

 

;Spawns Powder Gangers

 

scn VXPowderGangerSpawnScript

 

begin gamemode

 

VXPowderGangerSpawn.placeatme NCRCFPowderGangerGunAAM3 1

VXPowderGangerSpawn.placeatme NCRCFPowderGangerGunAAM3 1

VXPowderGangerSpawn.placeatme NCRCFPowderGangerGunAAM3 1

VXPowderGangerSpawn.placeatme NCRCFPowderGangerGunAAM3 1

 

end

 

VXPowderGangerSpawn is an xmarkerheading's reference editor ID (the nickname you can give to it). This xmarkerheading has persistent reference checked. This is where I want the powder gangers to spawn.

NCRCFPowderGangerGunAAM3 is a powder ganger (not a spawnmarker, and actual NPC) that was in vanilla new vegas. I have not edited it at all.

 

Whenever I teleport to this test room I have the marker in "using coc X in console" the guys don't appear. I was in the chat room, and noone there could assist me. This has been an all-nighter lol.

 

Anyone see what I'm doing wrong?

 

Thanks

 

soaren

Link to comment
Share on other sites

Also Your game would crash soon with that script... 60 FPS x 4 per second powder gangers...

 

Just for frack sake I tried it from quest script and it works - which means Your script is most likely not running.

Edited by thc1234
Link to comment
Share on other sites

scn VXPowderGangerSpawnScript

int bInit
int bSpawn
ref rEnemy01
ref rEnemy02
ref rEnemy03
ref rEnemy04

Begin OnLoad
if (bInit == 0)
	set bSpawn to 1
	set bInit to 1
endif
End

Begin GameMode
if (bSpawn)
	set rEnemy01 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set rEnemy02 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set rEnemy03 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set rEnemy04 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set bSpawn to 0
else
	if (rEnemy01.GetDead && rEnemy02.GetDead && rEnemy03.GetDead && rEnemy04.GetDead)
		set bSpawn to 1
	endif
endif
End

Link to comment
Share on other sites

scn VXPowderGangerSpawnScript

int bInit
int bSpawn
ref rEnemy01
ref rEnemy02
ref rEnemy03
ref rEnemy04

Begin OnLoad
if (bInit == 0)
	set bSpawn to 1
	set bInit to 1
endif
End

Begin GameMode
if (bSpawn)
	set rEnemy01 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set rEnemy02 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set rEnemy03 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set rEnemy04 to VXPowderGangerSpawn.PlaceAtMe NCRCFPowderGangerGunAAM3 1
	set bSpawn to 0
else
	if (rEnemy01.GetDead && rEnemy02.GetDead && rEnemy03.GetDead && rEnemy04.GetDead)
		set bSpawn to 1
	endif
endif
End

 

I may just be totally in love with you. I'll test it out tommorrow. Thanks

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...