How to make Actor Head (anybody part) explode?

Post » Sat May 28, 2011 1:19 pm

I posted this topic in the newvegasnexus but I thought I may as well post this in here to hopefully get more eyes on my woe.

So in my mod I want there to be a point where NPC1 fires his weapon at the direction of NPC2, then NPC2's head explodes.

I'm aware of the fireweapon function but how do I set up the direction NPC1's weapons is facing?
After that how do I make NPC2's head explode?

Going by the script logic in my head I assume it'd be something like this:

npc1weaponfire script line
weaponfirecounter set to 1
if weaponfirecounter == 1
[insert function that makes body part explode]npc2
endif

Thanks in advance!
User avatar
Czar Kahchi
 
Posts: 3306
Joined: Mon Jul 30, 2007 11:56 am

Post » Sat May 28, 2011 5:22 pm

Have a look at the script for "cutting off" Cook-Cook's Head:

scn HeadCookCookScriptbegin OnAdd player	; explode Cook-Cook's head	FiendCookCookRef.KillActor player 1	if GetStageDone VMS12 5		if (GetObjectiveDisplayed VMS12 20)			SetObjectiveCompleted VMS12 20 1		endif		SetObjectiveDisplayed VMS12 50 1	endif	end


http://geck.gamesas.com/index.php/KillActor
User avatar
Alex Vincent
 
Posts: 3514
Joined: Thu Jun 28, 2007 9:31 pm

Post » Sat May 28, 2011 3:55 pm

It may also be helpful to look at the "startcombat" command, which tells one actor to attack another.
User avatar
joseluis perez
 
Posts: 3507
Joined: Thu Nov 22, 2007 7:51 am

Post » Sat May 28, 2011 12:37 pm


I'm aware of the fireweapon function but how do I set up the direction NPC1's weapons is facing?



Use http://geck.gamesas.com/index.php/UseWeapon instead of fireweapon. One of the parameters is the target you want the calling actor to fire at.
User avatar
A Dardzz
 
Posts: 3370
Joined: Sat Jan 27, 2007 6:26 pm


Return to Fallout: New Vegas