Results 1 to 4 of 4

Thread: How Do You Make A Function That Says You're Dead?

  1. #1
    Join Date
    May 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default How Do You Make A Function That Says You're Dead?

    I want a way to tell simba that when dead, do this. Is there any built in function / Way that will say the player is dead?

    I want to create something easy like:

    if (dead) then (action);

  2. #2
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    I believe there is a text that comes up in the chat box correct? Try searching for that?
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  3. #3
    Join Date
    May 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    How would I do that? I'm kind of new to scripting.

  4. #4
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    There are some nice stuff built in for this actually so long as you use the SRL include
    Simba Code:
    procedure SetupScript;//Wherever you do your one time initilization stuff
    begin
      Reincarnate:=true;//This makes FindNormalRandoms not end the script when it notices you've died.
    end;

    //whatever part of your code you want the death determination to be in
      If(FindDead()) Then
      begin
        //action
      end else
       exit;//you aren't dead!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •