dider103 Posted May 2, 2017 Share Posted May 2, 2017 (edited) So when I scripts, I figured that if I use IsEquipped function to detect whether or not an actor equipped ammo, I got a QTD when I load my game. Can anyone help me?This is the code: if (!GetCasterActor().IsEquipped(ArrowFormList) && GetCasterActor().GetEquippedItemType(0) == 7) GetCasterActor().equipItem(boundArrow, TRUE, TRUE) endifThank you all for clicking this topic. Edited May 2, 2017 by dider103 Link to comment Share on other sites More sharing options...
Lisselli Posted May 3, 2017 Share Posted May 3, 2017 I don't think you can use a formlist with isEquipped? Link to comment Share on other sites More sharing options...
foamyesque Posted May 3, 2017 Share Posted May 3, 2017 I don't think you can use a formlist with isEquipped? No, you can, or it wouldn't compile in the first place. I'm not sure why this'd be causing a CTD; the code is correct as far as I can tell. Link to comment Share on other sites More sharing options...
Ghaunadaur Posted May 3, 2017 Share Posted May 3, 2017 (edited) I don't think you can use a formlist with isEquipped? Yes you can :smile: So when I scripts, I figured that if I use IsEquipped function to detect whether or not an actor equipped ammo, I got a QTD when I load my game. Can anyone help me?This is the code: if (!GetCasterActor().IsEquipped(ArrowFormList) && GetCasterActor().GetEquippedItemType(0) == 7) GetCasterActor().equipItem(boundArrow, TRUE, TRUE) endifThank you all for clicking this topic. Have you checked the papyrus log for any errors? It may help to narrow down the issue. Maybe also add some debugging lines to your script to check if some variables or properties aren't filled correctly. Edited May 3, 2017 by Ghaunadaur Link to comment Share on other sites More sharing options...
Recommended Posts