Jump to content

Need help auto-equipping


IceBite

Recommended Posts

I am new to attempting to script in the GECK (or in general, for that matter).

 

I'm trying to make an item that, if in the inventory of a specific race, the item will be automatically equipped to the individual, and will stay equipped to the individual.

 

I'm sure there's a script command (or set of script commands) that will allow me to do this, however, I have no idea what these script commands are. If there is anyone that can possibly help me with this, I would appreciate it.

Link to comment
Share on other sites

In the object script for your item:

 

scn autoEquipScpt

ref rContainer
short bDone


begin GameMode

set rContainer to GetContainer

if (bDOne != 1)
	if (rContainer.IsActor) && (rContainer != Player)
		if (rConcontainer.GetIsRace %RaceID1) || (rContainer.GetIsRace %RaceID2) || ... || (rContainer.GetIsRace %RaceIDN)
			rContainer.equipItem %YourItemEditorID 1
		endIf
	endIF
	set bDone to 1
endIf

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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