Jump to content

How to make Quest Script Type in which sound would play when player interact with object [Solved]


IKoxaI

Recommended Posts

So im trying to create mod in which player will say something when interact with container or a door which he cant lockpick due to low skill level. At first i thought that  im gonna create something like that 
scn MyneTestLock
ref myRef
begin OnActivate
    set MyRef to GetActionRef
    if MyRef.GetLocked == 2
        playsound MyneLockCheck
    endif
end
 but i realize that im gonna need to attach this sript to every door and safe. I cant come up with the script that im looking for due to luck of experience and knowledge. Any help please?  

[Edit]
I come up with better script 
scn MyneTestLock
ref myRef
begin Gamemode
    If IsKeyPressed 18 2 == 1
        set MyRef to GetCrosshairRef
            if MyRef.GetLocklevel > PlayerREF.getAV lockpick
        playsound MyneLockCheck
            endif
    endif
end

Edited by KAXA200
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...