metamarx Posted February 11, 2009 Author Share Posted February 11, 2009 If you do 'Begin OnAdd player' with 'player.kill'you die as soon as you pick it up without it freezing,didnt exactly awnser my question but it works :bunny: Link to comment Share on other sites More sharing options...
Alr360 Posted December 17, 2009 Share Posted December 17, 2009 Player.getdead checks if the player is dead (which they obviously never will be since they are always alive. You usually use it to check if an npc or creature has been killed. E.g SimmsRef.getdead == 1 will check to see if Simms is dead and if he is then whatever comes next will run. The kill command uses the syntax player.kill not kill player. So if you wanted to kill Simms you would go SimmsRef.kill. In the future if you have simple scripting problems such as this you should first check the geck wiki for the scripting functions you are trying to use to make sure you are writing them correctly. wait if you can use the kill cammand this could you use the "placeatme" command code in a similar manner (might be off topic).Like spawn a 2 copies of Lucis Simms everytime a milk bottle is add to your inventory ( :whistling: ). Link to comment Share on other sites More sharing options...
Ranokoa Posted December 17, 2009 Share Posted December 17, 2009 try reinstalling the game. Link to comment Share on other sites More sharing options...
Cipscis Posted December 17, 2009 Share Posted December 17, 2009 wait if you can use the kill cammand this could you use the "placeatme" command code in a similar manner (might be off topic).Like spawn a 2 copies of Lucis Simms everytime a milk bottle is add to your inventory ( :whistling: ).Yes, using the OnAdd blocktype you can run scripts when items are added to your inventory. Was it really worth dredging up a 10 month old thread about something completely unrelated? Here's a list of other blocktypes that you might find interesting - Begin. Using certain result scripts, there are even more events which can trigger scripts to run. Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts