How to detect the currently open container?

Post » Wed Mar 11, 2015 5:02 am

Hello, does anyone know how to detect the container the player currently has open?

Right now I am using a contantly running game mode script to detect what the player has his crosshair over, and using that to "tag" any containers the player may be about to open. However, this is processor intensive and not 100% reliable. Does anyone know of a different way?

User avatar
maya papps
 
Posts: 3468
Joined: Mon Aug 07, 2006 3:44 pm

Post » Tue Mar 10, 2015 9:49 pm

You could use an OnActivate Event Handler filtered for PlayerREF, then if GetType 27 you execute your code

However I also use the crosshair thing and running it on 0.01 delay time, or every frame, it seems pretty reliable. Still, I couldn't call it "script intensive"

User avatar
Trent Theriot
 
Posts: 3395
Joined: Sat Oct 13, 2007 3:37 am


Return to Fallout: New Vegas