Jump to content

Unconscious gun/tool


Phillips1990

Recommended Posts

Does fallout even have a "knockout" mechanic? (Fatigue-esque as in Oblivion)

 

A workaround could go something along the lines of:

1. Get NPC's current health (Can't remember the function to get modified value)

2. GetBaseObject (OBSE)

3a. Check to see if essential

3b. SetEssential BaseObject 1 (If 3a tests false)

4. TargetRef.Kill

5. SetEssential BaseObject 0 (If 3a tests false)

6. Set NPC's health back to initial (Set equivalent of 1., Might need something to account for the essential health regen on wakeup)

(Basically what you said) At any rate it would need OBSE for the GetBaseObject function.

 

Having an actor call PushActorAway on themselves with a negative power value would crumple them to the ground, it's just a knockdown, but would be the easiest to do, and non-OBSE.

 

If you can't figure out how to do it, I'll write up the script in a post here. At any rate though, a simple idea like this is perfect to help get your head around scripting basics. Go the the GECK wiki page and look at a few basic tutorials and you should get it done in no time.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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