Need some help with advanced container functionality for a c

Post » Sun Jun 27, 2010 2:44 am

Hi there.
I'm trying to create a gun-rack that automatically organises your weapons for display.
Does anyone know a way to get a container to drop its items into the world in a specific location?
I poked around in the GECK Wiki and can't seem to find anything.

Any suggestions would be welcome!

Thanks,
Dan
User avatar
Jade MacSpade
 
Posts: 3432
Joined: Thu Jul 20, 2006 9:53 pm

Post » Sun Jun 27, 2010 9:49 am

Create static models (that is, remove the collision in nifSkope) of the weapons and place them where you want them, as disabled references.
Then script the container to enable the right reference when a weapon is dropped in the container and disabled when the weapon is removed from the container. Myself, I did my gun racks with activators rather than containers. I think it works better visually.
User avatar
Big Homie
 
Posts: 3479
Joined: Sun Sep 16, 2007 3:31 pm

Post » Sun Jun 27, 2010 6:18 am

I think you can use the 1st person models for that, no?

I had a problem detecting when a container was closed after being opened. This might come in handy.
int iStateBegin OnActivate	if (IsActionRef Player)		if (iState == 0)			set iState to 1		endif	endifEndBegin GameMode	if (iState)		if (iState == 1) ; it's about to open			set iState to 2			Activate			Return		elseif (iState == 2 && IsAnimPlaying == 0) ; it just closed			set iState to 0		endif	endifEnd

User avatar
Rodney C
 
Posts: 3520
Joined: Sat Aug 18, 2007 12:54 am

Post » Sun Jun 27, 2010 2:39 pm

I think you can use the 1st person models for that, no?



You can use them, but if you touch them, they'll all fall to the ground since they still have collision. If you remove the collision, they'll stay in the same position you put them in GECK no matter what.
User avatar
Jade Barnes-Mackey
 
Posts: 3418
Joined: Thu Jul 13, 2006 7:29 am


Return to Fallout: New Vegas