Check to see if a door is a load door? Also, crime.

Post » Thu Jun 21, 2012 5:11 pm

Greetings,

I made a mod about smashing locks with weapons and now I'm working on an update. For this update one thing I'm trying to do is to check if a door is a load door or not. Once a lock is smashed I have it set so that the door or chest will activate, but I only want that to happen if it's not a load door. So if you smash the lock on an interior door the door will swing open, but smashing the lock on a load door will not make it open or activate.

So yus, does anyone have a way to check?


Also, crime. Right now I just check if there is someone within 500 units and if there is I make them report you as being naughty. Would there be a way to check for close actors that can actually see you, or what?

Cheers, and free bananas for everyone!
User avatar
Andrew Lang
 
Posts: 3489
Joined: Thu Oct 11, 2007 8:50 pm

Post » Thu Jun 21, 2012 2:10 pm

for your crime issue you can try
http://www.creationkit.com/OnGainLOS_-_Form

there are some other LOS related things, like RegisterForLOS which may be usefull

in order to use these you would likely have to create a magic system where the player silently casts a magic effect on nearby actors so that they can run these functions in the script
User avatar
Christina Trayler
 
Posts: 3434
Joined: Tue Nov 07, 2006 3:27 am

Post » Thu Jun 21, 2012 3:24 pm

Ohh, thanks. Any idea about the door thingy?
User avatar
carly mcdonough
 
Posts: 3402
Joined: Fri Jul 28, 2006 3:23 am

Post » Thu Jun 21, 2012 2:06 pm

you would need to figure out a way to determine whether the door has a linked door (teleport-enabled). there is currently no papyrus function to return this kind of value
User avatar
Sheila Reyes
 
Posts: 3386
Joined: Thu Dec 28, 2006 7:40 am

Post » Thu Jun 21, 2012 9:31 pm

how about using SetOpen() instead of activate
http://www.creationkit.com/SetOpen_-_ObjectReference
User avatar
Lucky Girl
 
Posts: 3486
Joined: Wed Jun 06, 2007 4:14 pm

Post » Fri Jun 22, 2012 12:34 am

Ah yeah, I've tried that. The only issue is that it causes load doors to open partially so then you have to close it and reopen it to go through it. :|
User avatar
Euan
 
Posts: 3376
Joined: Mon May 14, 2007 3:34 pm


Return to V - Skyrim