Jump to content

Destroy wall with weapon


pcaviator

Recommended Posts

The aim is to have a mine wall that the player caqn destroy to real a dungeon beyond. I have a mine wall static object (MineCLWallCorner01) that I've made into an activator, and set the destruction data for the activator. I've also attached a script that destroys the wall when the OnDestructionStageChanged event reaches stage 4-5 (don't know if that's really needed as the destruction data is set to destroy the object at stage 5). I've duplicated the wall & placed it in a void & linked the two activators. The wall works well & can be destroyed by the player using destruction magic. It takes several casts of a destruction spell to do the job, but that's as intended to progress through the destruction stages.

 

My problem is that when I try to hit the wall with a pickaxe or sword, nothing happens. No wall-strikes & no OnHit event is fired. can anyone direct me to a methodology that I can also allow the player to do damage to the wall with weapons & not just spells? Thank you for assistance.

Link to comment
Share on other sites

If you follow the "creationkit.com' tutorial, then just remove the script, no need for script here.



" My problem is that when I try to hit the wall with a pickaxe or sword, nothing happens "

That's probably because you are "coc" to the cell to test, so you are at level 1 and the actual damage you can inflict is low ( like around 10 points ).

For testing, go to your destructible object activator and change the destuction data, if you had it like 500 of health reduce it to 50, test it, and if isen't working with swords follow again each step of the tutorial, somewhere something you missed - messed up.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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