xorgroth Posted June 15, 2012 Share Posted June 15, 2012 (edited) 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 June 15, 2012 by xorgroth Link to comment Share on other sites More sharing options...
luthienanarion Posted June 15, 2012 Share Posted June 15, 2012 (edited) Try using an OnTriggerEnter block instead. http://geck.bethsoft.com/index.php/OnTriggerEnter OnTrigger does not set the action ref, so GetActionRef will return nothing inside an OnTrigger block. Edited June 16, 2012 by luthienanarion Link to comment Share on other sites More sharing options...
xorgroth Posted June 16, 2012 Author Share Posted June 16, 2012 Try using an OnTriggerEnter block instead. http://geck.bethsoft.com/index.php/OnTriggerEnter OnTrigger does not set the action ref, so GetActionRef will return nothing inside an OnTrigger block. Thanks, that seemed to do the trick. Link to comment Share on other sites More sharing options...
Recommended Posts