IsLimbGone - Quick Question on Implementing It

Post » Tue Aug 25, 2009 9:06 pm

Hello I have a few quick Q's about the IsLimbGone function...

so I want to be able to check if an actor has a limb chopped off (1) on death or (2) after death (chopping it off the dead body)

is this possible with the IsLimbGone function?

are there certain block types the the function can only be used with?

I had this script whichh obviously doesn't work:

scn CheckChopped

begin OnHit

If Gangster.IsLimbGone 1
SetStage BBQ 100
endif

end


and I applied this to the "gangster" NPC under the script.


so any help or direction would be much appreciated!
User avatar
Emma
 
Posts: 3287
Joined: Mon Aug 28, 2006 12:51 am

Post » Wed Aug 26, 2009 6:26 am

Try 2 instead of 1? Don't know why they have two values for the head.
User avatar
latrina
 
Posts: 3440
Joined: Mon Aug 20, 2007 4:31 pm

Post » Wed Aug 26, 2009 7:25 am

I think I have tried that but I will again when I get home... from research I believe different models utilize the various #'s. If you look under body part data I think Humans NPCs use head #1 and animals and creatures use some of the other #'s like head #2. Thanks for the post!
User avatar
rae.x
 
Posts: 3326
Joined: Wed Jun 14, 2006 2:13 pm

Post » Wed Aug 26, 2009 7:50 am

What's the script on?
User avatar
Ladymorphine
 
Posts: 3441
Joined: Wed Nov 08, 2006 2:22 pm

Post » Wed Aug 26, 2009 7:11 am

I think one value is decapitation while other is smushed to a pulp.
User avatar
Ross
 
Posts: 3384
Joined: Thu Aug 10, 2006 7:22 pm

Post » Tue Aug 25, 2009 8:36 pm

I applied the script to the actor reference directly through editing his base ... in this case the gangster and under the script rollout menu I applied the script I made.

I was able to get it to work when I kill the player and their head decapitated with the final blow with this method:

SCN CheckCHopped

Begin Ondeath

setstage bbq 100

end


then in the quest editor I made a condition under the quest stage 100 that checks the reference of the actor in the cell with condition IslimbGone 1 == 1

however this only works if the head is cut off ON DEATH and is not really the whole package. I want to be able to check after death and on death which I dont know if it is possible.
User avatar
Nina Mccormick
 
Posts: 3507
Joined: Mon Sep 18, 2006 5:38 pm

Post » Wed Aug 26, 2009 8:54 am

Problem Solved! I was able to find out the answer looking through the forums... suprise.

Anyway for all those interested this is the script

Scn CheckChopped

Begin OnHit

If IsLimbGone (whatever limb #) == 1
SetStage BBQ 100
endif

end


and apply this to any NPC to check if a limb has been chopped off whenever.... I know... I am twisted.
User avatar
TIhIsmc L Griot
 
Posts: 3405
Joined: Fri Aug 03, 2007 6:59 pm


Return to Fallout: New Vegas