Ell223 Posted October 27, 2010 Share Posted October 27, 2010 So I'm trying to make a gun which will instantly remove all items off of an NPC once they are hit with it but can't seem to get the scripting right. I've never tried this before so I'm fairly new at it, any help? Link to comment Share on other sites More sharing options...
WastelandAssassin Posted October 27, 2010 Share Posted October 27, 2010 i think you can use this functionif it's not what you are looking for, look in this site at the other functions, under R (maybe there is another remove that does what you want, if this doesn't) Link to comment Share on other sites More sharing options...
Ell223 Posted October 28, 2010 Author Share Posted October 28, 2010 Thanks for the reply, would you know how to add this to a weapons desired effect on hit with an NPC? Link to comment Share on other sites More sharing options...
WastelandAssassin Posted October 28, 2010 Share Posted October 28, 2010 if i remember correctly, there is a slot in the weapons' data, for a script effectso i think you can add the script through it Link to comment Share on other sites More sharing options...
Ell223 Posted October 28, 2010 Author Share Posted October 28, 2010 Ah okay, thanks. And one final question, I've used the function you suggested, but still can't get my script to work, I currently have this:scriptname DeCloth short updateCount Begin OnHitWith 000DeClother RemoveAllItems End 000DeClother being the weapon I am trying to assign it to. Link to comment Share on other sites More sharing options...
WastelandAssassin Posted October 28, 2010 Share Posted October 28, 2010 well, this isn't the whole script, right??if so, can you post the whole script??also, when you try to save the script, a screen will pop up and notify you of the problems in the scriptcould you write what it says??i'll try to help you fix this script also, i think i have seen this done before, so i'll look into it Link to comment Share on other sites More sharing options...
Ell223 Posted October 28, 2010 Author Share Posted October 28, 2010 Thats my whole script lols. I told you I'm new at this :P And I've never gotten a screen telling me whats wrong, I just click save and then exit the scipt.Thanks for the help. Link to comment Share on other sites More sharing options...
WastelandAssassin Posted October 28, 2010 Share Posted October 28, 2010 so the script is ok, but it's not working??it doesn't do what it is supposed to?? Link to comment Share on other sites More sharing options...
Ell223 Posted October 28, 2010 Author Share Posted October 28, 2010 No, I've attached it to a plamsa rifle with a changed name, it does 1 damage which is what I set it to, but the desired effect doesn't happen. Link to comment Share on other sites More sharing options...
Platplay Posted October 28, 2010 Share Posted October 28, 2010 you need to make a variable for who's hit.... then have that variable stripped. That what i think anyway. So on hit, get actor, then gotten actor = strip currently it doesn't know who or what, its suppose to remove all items from. Link to comment Share on other sites More sharing options...
Recommended Posts