Companion weapon draw when you do

Post » Sat Jan 22, 2011 9:59 am

I want to add an option that allows jasmine to draw her weapon when you do. The question is how do I do that?

Would i need to add something to her script, or her quest?
User avatar
Stephanie I
 
Posts: 3357
Joined: Thu Apr 05, 2007 3:28 pm

Post » Sat Jan 22, 2011 3:50 am

I want to add an option that allows jasmine to draw her weapon when you do. The question is how do I do that?

Would i need to add something to her script, or her quest?


You can add this to her script, and add a dialog to turn it on or off by setting iDrawWithPlayer

short iDrawWithPlayerIf iDrawWithPlayer == 1	If player.IsWeaponOut == 1		if GetIsAlerted == 0			SetAlert 1		endif	else		if GetIsAlerted == 1			SetAlert 0		endif	endif	else	if GetIsAlerted == 1		SetAlert 0	endif	endif

User avatar
Stephanie I
 
Posts: 3357
Joined: Thu Apr 05, 2007 3:28 pm

Post » Fri Jan 21, 2011 10:09 pm

You can add this to her script, and add a dialog to turn it on or off by setting iDrawWithPlayer

short iDrawWithPlayerIf iDrawWithPlayer == 1	If player.IsWeaponOut == 1		if GetIsAlerted == 0			SetAlert 1		endif	else		if GetIsAlerted == 1			SetAlert 0		endif	endif	else	if GetIsAlerted == 1		SetAlert 0	endif	endif





It needs a begin and end block. What would follow the begin? would it be gamemode?


Actually nevermind i figured it out myself for once :biggrin:
User avatar
Celestine Stardust
 
Posts: 3390
Joined: Fri Dec 01, 2006 11:22 pm


Return to Fallout 3