zblueskyz Posted February 29, 2020 Share Posted February 29, 2020 How can I make a button to move the bottles that have been shot back to the stand Link to comment Share on other sites More sharing options...
WarMachineDD7 Posted February 29, 2020 Share Posted February 29, 2020 (edited) Look up how to make and use Activators (I'm sure there's plenty of videos out there), then place a few bottles in your player home (record their xyz positions) and make them persistent (so that you can call them through your script with the unique name you give them). Then make markers for where the bottles are gonna be using the xyz coordinates from earlier. And finally, have the activator use the MoveTo function whenever it's pressed so that it'll return the bottles to their default position. The script for your button would look something like this: Begin OnActivate ;begin when activator is activated, i.e. when button is pressed myBottleRef1.MoveTo myMarker1 myBottleRef2.MoveTo myMarker2 myBottleRef3.MoveTo myMarker3 End Alternatively, you can use SetPos and avoid using markers altogether, but you gotta run 3 commands for each bottle (one for each coordinate): myBottleRef1.SetPos x 123 myBottleRef1.SetPos y 123 myBottleRef1.SetPos z 123 myBottleRef2.SetPos x 234 myBottleRef2.SetPos y 234 myBottleRef2.SetPos z 234 myBottleRef3.SetPos x 345 myBottleRef3.SetPos y 345 myBottleRef3.SetPos z 345 If you're using JIP LN, you can use SetPosEx instead and set their xyz coordinates with one single function for each bottle. Look up the tutorial quest where Sunny Smiles tells you how to shoot for an in-game example of how to do it (quest name is Back In the Saddle, you'll find it in the editor under the name VCG02). They might do it slightly different though, I haven't read it. Edited February 29, 2020 by WarMachineDD7 Link to comment Share on other sites More sharing options...
Recommended Posts