paha989 Posted March 25, 2015 Share Posted March 25, 2015 So i need a script that takes all the items from players inventory and moves them into a chest. It would be something like this. -------------------------------------------------------------scn PrisonMovePlayerItemsbegin OnTriggerEnter player PlayRefItems.removeallitems player 0 1 end------------------------------------------------------------ Playrefitems ---> container that the items would be moved to. Link to comment Share on other sites More sharing options...
Jokerine Posted March 25, 2015 Share Posted March 25, 2015 (edited) scn SCRIPTNAME Begin OnTriggerEnter player Player.removeallitems CONTAINERREF 1 1 End Edited March 25, 2015 by Jokerine Link to comment Share on other sites More sharing options...
paha989 Posted March 25, 2015 Author Share Posted March 25, 2015 scn SCRIPTNAME Begin OnTriggerEnter player Player.removeallitems CONTAINERREF 1 1 End Something is wrong because it doesn't let me save the script. Link to comment Share on other sites More sharing options...
Jokerine Posted March 25, 2015 Share Posted March 25, 2015 (edited) Give your container a unique REF, not just the base item but a reference editor ID. Make the container a persistent reference as well. Edited March 25, 2015 by Jokerine Link to comment Share on other sites More sharing options...
paha989 Posted March 25, 2015 Author Share Posted March 25, 2015 Give your container a unique REF, not just the base item but a reference editor ID. Make the container a persistent reference as well.Thanks now it works :laugh: Link to comment Share on other sites More sharing options...
Jokerine Posted March 25, 2015 Share Posted March 25, 2015 :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts