Jump to content
  • 0

[Help] Replace NPC help


Question

Posted

Hello guys, I have a small problem. I am making a small mod, and i made some guards... but i want when the other team gets the territory, delete the guards for the 1 team, and create another npc which is the guard for other team... if someone can help me, I would appriciate. Thanks.

2 answers to this question

Recommended Posts

  • 0
Posted

I have no idea what you're trying to do.. this is all I see from your description:

 

Small problem.. making a small mod, made guards, other team gets territory, delete guards for team, create another guard for other team.

 

Please describe What your mod is suppose to do, for what purpose, and where the problem occure, perhaps a error log..

  • 0
Posted

Well... Here is my problem: I have 1 NPC, spawned 2 Times for example... BUT if i try to do it like Npc.getLastSpawn().deleteMe() (function which deletes the npc, thats what I need), deletes only the last NPC that was created... so as I see there is no solution, i have to create like 80 npc's with same name, and different ID.... anyway, i will wait some hours to see if someone has another idea to fix it, otherwise i will create like 80 NPCs :/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...