Wystan Posted May 29, 2015 Share Posted May 29, 2015 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. Link to comment
Clan FJA Posted May 29, 2015 Share Posted May 29, 2015 I think you put a wrong spawnflags.Try with no spawnflags Link to comment
Ramikad Posted May 29, 2015 Share Posted May 29, 2015 Any error message? And any chance you set a spawnscript that renders it invisible? Link to comment
Clan FJA Posted May 29, 2015 Share Posted May 29, 2015 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. Link to comment
Wystan Posted May 29, 2015 Author Share Posted May 29, 2015 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. Link to comment
Clan FJA Posted May 29, 2015 Share Posted May 29, 2015 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. Link to comment
Wystan Posted May 29, 2015 Author Share Posted May 29, 2015 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: then in less than a second like this:And lots of unbearable variations. Link to comment
Wystan Posted May 29, 2015 Author Share Posted May 29, 2015 Swamptrooper and human_merc Link to comment
Langerd Posted May 29, 2015 Share Posted May 29, 2015 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? Link to comment
Asgarath83 Posted May 29, 2015 Share Posted May 29, 2015 NPC_spawner entity not need spawnflags. because with npc_type key you can set every kind of NPC you desire.spawn with trigger is better IMHO. o.o Link to comment
Wystan Posted May 29, 2015 Author Share Posted May 29, 2015 keep thinking maybe we find the solution eventually. Link to comment
IrocJeff Posted May 29, 2015 Share Posted May 29, 2015 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? Link to comment
IrocJeff Posted May 29, 2015 Share Posted May 29, 2015 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? Link to comment
Wystan Posted May 29, 2015 Author Share Posted May 29, 2015 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. Link to comment
IrocJeff Posted May 29, 2015 Share Posted May 29, 2015 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? Link to comment
Wystan Posted May 29, 2015 Author Share Posted May 29, 2015 I said, i'd prefer to spawn them by trigger, but they're invisible if i spawn them separately. Link to comment
Asgarath83 Posted May 30, 2015 Share Posted May 30, 2015 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? Link to comment
Solution Wystan Posted May 31, 2015 Author Solution Share Posted May 31, 2015 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 Link to comment
Asgarath83 Posted May 31, 2015 Share Posted May 31, 2015 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now