Jump to content

Question on EquipItem() in script.


Recommended Posts

I have this working with AddItem() and EquipItem() with it not being able to be unequipt by the player but...

 

Does anyone know if it is possible to force equip an item of clothing/armour without it ever showing up in the players inventory?

Link to comment
Share on other sites

To add an item to the player without been seen in its inventory, you only have to remove the name of the item, have it blank (the name not its ID).

To keep an item equipped, you either:

- Use "DisablePlayerControls( bool abMenu = true )"

- Have the flag on the "EquipItem()" > "bool abPreventRemoval = TRUE"

* Another alternative, but this needs to have the player on an alias.

- Run on the player's alias a simple script.

Example:



Armor Property MySecretArmor Auto

Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
If ( Player.IsEquipped(MySecretArmor) )
RETURN
ElseIf ( (akBaseObject as Armor) != MySecretArmor )
Player.EquipItem(MySecretArmor, True, True)
EndIf
Endevent



Have a nice weekend

Edited by maxarturo
Link to comment
Share on other sites

Unticking the "Playable" is the correct way to go, but... There is a game glitch that can happen and if the item has a name it can still appear in the inventory, it rarely happens but it does.


An example of this is with the unused by the game "Spriggan Shield", it was not developed but it is in game, over the years a lot of players have found a 'Spriggan Shield', it does not have a mesh and it's just a node but the item has a name "Spriggan Shield" and it's not playable, but it still shows up in game in rear circumstances.


It has happened to me 4-5 times over the years with items not playable.


The weirdness of this game...

Link to comment
Share on other sites

Ah... good to know :geek:

 

I had removed the name as you suggested and had tested that...

then the advice to uncheck the 'Playable'

so my items has both no name and not playable... so I guess I'm covered :thumbsup:

 

I have to say I'm feeling a little left out now... I've never even heard of let alone found a 'Spriggan Shield' :blush:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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