Jump to content

Scripting Help


xorgroth

Recommended Posts

I'm currently trying to have an activator in geck remove certain items (weapons/ammo/etc) from NPCs who have a token on them once they walk through the activator. Then place the items in a footlocker which is a linked ref and ignore items on a form list from being removed. Which so far nothing gets removed or put into the footlocker.

 

scn NpcRemoveWeap

ref NpcREF
ref TargetREF

begin OnTrigger

set TargetREF to GetLinkedRef
set NpcREF to GetActionRef

if ( NpcREF.getitemcount Npc01TOKEN == 1 )
NpcREF.RemoveAllTypedItems TargetREF 0 0 29 KeepMeLIST
NpcREF.RemoveAllTypedItems TargetREF 0 0 31 KeepMeLIST
NpcREF.RemoveAllTypedItems TargetREF 0 0 40 KeepMeLIST
NpcREF.RemoveAllTypedItems TargetREF 0 0 41 KeepMeLIST
NpcREF.RemoveAllTypedItems TargetREF 0 0 47 KeepMeLIST
NpcREF.RemoveAllTypedItems TargetREF 0 0 49 KeepMeLIST
NpcREF.RemoveAllTypedItems TargetREF 0 0 116 KeepMeLIST
endif
end

Edited by xorgroth
Link to comment
Share on other sites

  • Recently Browsing   0 members

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