Thread: Remove & Respawning

Results 1 to 3 of 3
  1. #1 Remove & Respawning 
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    Well when I click on my npc it gets removed as I want it too and I'm using this code:
    Code:
    npc.absX = 0;
    npc.absY = 0;
    But after that I want the npc to respawn after some time, which it doesn't, I've trying to include
    Code:
    npcs[i].needRespawn = true;
    npcs[i].actionTimer = getRespawnTime(i); // respawn time
    But it didn't work, anyone got any ideas? and how I would solve the problem.

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Mar 2007
    Posts
    92
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    when you tele it here
    Code:
    npc.absX = 0;
    npc.absY = 0;
    your teleing the npc into a unmapped area, therefore adding a respawn timer to that npc will do no good because it is not dead, instead add this at the end of the tele.

    Code:
    npc.absX = 0;
    npc.absY = 0;
    npcDead= true;
    or whatever void you use to declare that npc dead.
    Reply With Quote  
     

  3. #3  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    Quote Originally Posted by Dell View Post
    when you tele it here
    Code:
    npc.absX = 0;
    npc.absY = 0;
    your teleing the npc into a unmapped area, therefore adding a respawn timer to that npc will do no good because it is not dead, instead add this at the end of the tele.

    Code:
    npc.absX = 0;
    npc.absY = 0;
    npcDead= true;
    or whatever void you use to declare that npc dead.
    I have tryed by doing that too but it never gets respawned..

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. npc not respawning
    By peronigood in forum Help
    Replies: 7
    Last Post: 12-08-2010, 12:52 PM
  2. npc respawning problem
    By Chris SS in forum Help
    Replies: 3
    Last Post: 12-06-2010, 09:47 AM
  3. NPC - Respawning
    By Redslash in forum Help
    Replies: 0
    Last Post: 09-12-2010, 02:26 PM
  4. NPC - Respawning
    By Redslash in forum Requests
    Replies: 0
    Last Post: 08-29-2010, 12:27 PM
  5. Cabbage Respawning.
    By mmaKush in forum Help
    Replies: 15
    Last Post: 04-12-2010, 09:13 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •