LOLlipopRazors Posted February 18, 2013 Share Posted February 18, 2013 Hello! I have seen many player-houses with weapons displayed on the wall,and i figured it's about time to learn some scripting!But maybe it's out of my league, because I've stuck.But I wanted to ask here first and see if I understand possible solution.My script wont save, what am I doing wrong? scn WeaponDisplayScriptBEGIN OnCloseif mycustomnamedcontainer.GetItemCount vanillaweaponID >= 1mycustomnamed1stPersonmodel.enableelseif mycustomnamedcontainer.GetItemCount vanillaweaponID <= 0mycustomnamed1stPersonmodel.disableendifEND (English is not my native language) Link to comment Share on other sites More sharing options...
Xaranth Posted February 18, 2013 Share Posted February 18, 2013 You cannot call enable/disable on a form, only on a Reference. If you're actually calling a reference in the script above, it must be a PERSISTENT reference. Link to comment Share on other sites More sharing options...
LOLlipopRazors Posted February 19, 2013 Author Share Posted February 19, 2013 I had neither a Reference or Persistent Reference on, and now the script can be saved, thanks!But my 1stPersonmodelREF is always visible. =/ Link to comment Share on other sites More sharing options...
Xaranth Posted February 19, 2013 Share Posted February 19, 2013 Try using the console to call 'enable/disable' on the reference directly, that will let you know if it's an issue with the script or the reference. Link to comment Share on other sites More sharing options...
LOLlipopRazors Posted February 20, 2013 Author Share Posted February 20, 2013 (edited) I can Disable and Enable my 1stPersonmodelREFIs it the script then? Edited February 21, 2013 by LOLlipopRazors Link to comment Share on other sites More sharing options...
Recommended Posts