Jump to content

Kill Player script


metamarx

Recommended Posts

  • 10 months later...
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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...