Jump to content

Interact only when item equipped or in posession


Zorkaz

Recommended Posts

Dear people how do I make the following thing:

 

Player can only interact with an activator when he has a shovel equipped.

All my interaction conditions didn't work out, maybe I'm overlooking a simple step

Link to comment
Share on other sites

Simplest way: put a a script on the activator, and in the OnActivate, do this:

 

https://www.creationkit.com/fallout4/index.php?title=IsEquipped_-_Actor

 

Edit: eh, here's a full script which might work:

 

ScriptName myGraveScript extends ObjectReference const

Weapon property myShovel auto const mandatory
{put your weapon in here}

Event onActivate(ObjectReference act)
    if(act == Game.GetPlayer())
        if(Game.GetPlayer().isEquipped(myWeapon))
            ; do something here
        endif
    endif
endevent

Link to comment
Share on other sites

I'm wrong, I used the interaction conditions for NPCs interacting with furnitures and it works, but didn't tested it for the player nor with activators, it actually doesn't have any effect for the player.

Doing it as Pra suggested is the way to go. Or you can do it using a perk, but it is more complicated.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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