Jump to content

Photo

Continuous enemies for Helm's Deep mod

creation kit helms deep lotr respawn enemies

  • Please log in to reply
3 replies to this topic

#1
Nanerinium

Nanerinium

    Stranger

  • Members
  • Pip
  • 4 posts

Hello! 

 

I'm working on a Helm's Deep mod, and I'm looking for a way to make a enemies appear continuously until you kill a certain number or percentage of them. Just like you'd see in the Vanilla game when you do the civil war quests and have to take over Whiterun/ Windhelm, or various imperial/ stormcloak forts! 

 

 

Here is a link to my map so far. I've made changes since I made this video, but I've worked hard at getting the details right and would LOVE to see this thing finished to it's best potential!

 

https://www.nexusmod...ion/videos/3194

 

 

 

 

Thank you!



#2
Rizalgar

Rizalgar

    Enthusiast

  • Supporter
  • PipPip
  • 222 posts

You could use something like this script attached to the actor, that would spawn in a new actor each time the actor was killed.

 

Spoiler

 

I'm not going to guarantee these will work flawlessly, but they should more or less get the job done.

 

Actually, you don't need a global variable for the killcount. Just make an Int KillCount and you'll be good.


Edited by Rizalgar, 14 February 2019 - 02:30 AM.


#3
Nanerinium

Nanerinium

    Stranger

  • Members
  • Pip
  • 4 posts

Hey! Thank you so much for your quick response.

 

I just tried your first script but I must be doing something wrong. I'm totally new to the creation kit and have never added scripts before. I simply double clicked on the actor that I wanted to respawn; went to the scripts tab and clicked "add"; selected "new script" and called it "EndlessEnemy"; and then copy/pasted 100% of the script you wrote into the text box.

 

Is there something else I need to do?

 

Thank you again!

 

Scriptname EndlessEnemy Extends Actor

ObjectReference Property SpawnMarker Auto

Event OnDeath(Actor killer)

If Self.IsDead()
SpawnMarker.PlaceActorAtMe(Self.GetActorBase())
EndIf

Utility.Wait(5)
Self.Delete()

EndEvent


#4
Rizalgar

Rizalgar

    Enthusiast

  • Supporter
  • PipPip
  • 222 posts

Yes. You need to add the properties to the script, otherwise the script doesn't know what it's referring to. To do this, in the actor tab where you added the script, click the script, then select properties, and add the appropriate values to the properties.

 

This may provide some insight

 

https://www.creation..._and_Properties

 

In this particular case, you need to set the marker. Do this by placing an X Marker where you want the enemy to respawn. Double click the marker, name it Spawn1, go into the script on the actor, properties, then select SpawnMarker and select Spawn1 Marker you placed in the world.


Edited by Rizalgar, 15 February 2019 - 12:50 AM.






Also tagged with one or more of these keywords: creation, kit, helms, deep, lotr, respawn, enemies

IPB skins by Skinbox
Page loaded in: 1.117 seconds