Jump to content

Invicible npcs


Go to solution Solved by Wystan,

Recommended Posts

Posted

I have encountered a strange problem. Npc spawner spawns npc which is completely invisible, it exists but not visible, crosshair is red and it's shooting at me. If i spawn via console everything works fine. Need help with this.

Posted

so... it can be a spawnscript which make the npc become invisible

 

 

Try again with a spawnflags 32. The npc will do nothing but we can know if it is the spawnflags or not which is the problem.

Posted

Nope no error messages no spawnscript as well as no spawnflags. 

 

PS When i kill all, even friendly npcs which are spawned in the beginning, i get the spawners work properly. But i cannot order a player to kill every prisoner in the prison.

 

Posted

can you give us more details ?

What is the map ? the project ? What do you want to do ?

What is the targetname of the npc spawner ? Maybe there is a conflict with other entities or scripts.

Posted

Map is a huge prison. Project is Silex 3 - Paradox of Colonel Williams. I'm not trying to do something unusual, just want the npc to spawn after a player activates the trigger.

 

Now when i've put all 100 npcs at once, everything works fine, but when i spawn i look like this:

 

 

2f68f135c9e0.jpg

then in less than a second like this:

9252a6c09128.jpg

And lots of unbearable variations.

 

Posted

The spawning limit of the npcs is lower than 100 i think (to work properly). They are spawned at once on the map or by triggers?

Posted

keep thinking maybe we find the solution eventually.

 

How did you set up your trigger? Does it just trigger the NPC(s) or do it open a door as well?

Posted

no, just npcs

 

I was just thinking if you it was a trigger multiple and the trigger was large enough it'd keep spawning npcs... 

 

Another thing would be that you are using JA models in JO which will appear invisible but still attack you, however, since they work when not triggered that's out.

 

Your not trying to spawn 100 npc's at once, right? and your trigger is set to trigger_once, and you selected the trigger and then the npc to connect each npc to the trigger?

Posted

JA, trigger_once. 100 npcs at once only if it'll still keep going this way. And if i spawn all 100 at once, thay're all visible but the player is screwed.

Posted

I would try breaking up the triggers as there may be something happening when you spawn them all at once. Do they all need to be in the map at one time? 

Posted

really oddest.

1- what version of radiant are you using?

2 - can you paste here the NPCs data file spawned and all the parameters and spawnflags of map of the trigger once and of the NPC_spawner you used?

3- have you tried to spawn not with NPC_spawner but with NPC_human_merc or NPC_Swamptrooper entity?

  • Solution
Posted

Okay people I've found the solution. It's unexpected. This map is a prison so it has forcefields more than 100 forcefields. When i removed them, everything started to work perfectly. While it wasnt what i wanted. And the solution is: there're many prison cells far away from player that will never be opened so i did a single forcefield instead of each 10 separate forcefields. Now everything is fine.

Asgarath83 likes this
Posted

Really odd. forcefield shader can give trouble with Npc_spawner.... o.o incredible!

maybe is not a problem of radiant but of the engine, maybe is hitted some shader cap limit of the map. o.o

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...