Making an NPC invisible?

No-Named

Newbie
Joined
Jul 2, 2009
Messages
10
Reaction score
0
NOTE: I've never seen it done.
But is there a way to make an npc invisble? Or is there at least an invisble npc that can move using scripted sequences?
 
Yes, you can change render settings from Hammer. Alternatively you can edit *.VMT files to make engine not render models.
 
Yes, you can change render settings from Hammer. Alternatively you can edit *.VMT files to make engine not render models.

Hey, thanks! The best thing is, the npcs dont make any sounds as they walk when they are invisible! :D
 
Now, i have another question:
I made a scripted sequence 32 inches left of my npc. The sequence's parent is the npc. When i trigger the sequence to make the npc walk to it, it works fine. He walks to the point the sequence was at when it was triggered and the sequence then moves with the npc. But when the sequence is done, the npc teleports to the current sequence position. I figured it may be something it always does, but because the sequence's normally dont move, we dont notice it. I looked around finding the flag "do not teleport npc on end" which seemed to be able to fix my problem. I tried checking it but sadly, nothing happends. So my question is very simple:

How do i make npcs stop teleporting to the sequence position as it ends without having to make the npc not move to it at all?
 
can you upload your source map? it's hard to tell how to fix the problem without details :)
 
can you upload your source map? it's hard to tell how to fix the problem without details :)

ok its attached. In this map i'm testing the mechanic :p Simply making an NPC walking using the movement keys (W S D A) :p
 

Attachments

well, the problem is npc always move to specified point - and this point does not change during the walk, but when it's stopped.

ermm, this is hard to tell: engine does not seem to know sequence is stopped. when you trigger citizen to move, it goes to first permanent point - problem starts here, engine does not stop animation, and moves citizen to new specified point. i know this is pretty confusing (or simply my vocabulary is limited)

best thing you can do is a make an invisible brush around citizen, not connected to citizen in any way. parent your animations to this brush. i'm trying to one get working, i'll let you know if it works
 
well, the problem is npc always move to specified point - and this point does not change during the walk, but when it's stopped.

ermm, this is hard to tell: engine does not seem to know sequence is stopped. when you trigger citizen to move, it goes to first permanent point - problem starts here, engine does not stop animation, and moves citizen to new specified point. i know this is pretty confusing (or simply my vocabulary is limited)

best thing you can do is a make an invisible brush around citizen, not connected to citizen in any way. parent your animations to this brush. i'm trying to one get working, i'll let you know if it works

Thanks but... Making an invisible brush around the citizen, wouldn't that trap the citizen in a small area, making the player unable to fully control him? Now, you also say i need to parent the animations (scripted_sequence?) to the brushes, and if the brushes doesnt move, neither will the citizen, so i suppose you mean i need to make the brushes parent the animations (which i don't get cause i have 4 "animations"), and since the animations move with the scripted_sequence, it will be like the brushes are moving with the citizen, therefore the brushes will be connected with the citizen. Now i have a feeling i COMPLETELY misunderstood you, so if you get something working, please let me know, and maybe send me the vmf?
 
yeah, using brush isn't working either (btw you can make a non-solid brush). i talked with my friend on possibilities, we didn't manage to come up with a good idea (but some crazy ideas like parenting entities to physbox, pushed by trigger_push...what we were thinking). anyway, I'll let you know if I find something useful.
 
yeah, using brush isn't working either (btw you can make a non-solid brush). i talked with my friend on possibilities, we didn't manage to come up with a good idea (but some crazy ideas like parenting entities to physbox, pushed by trigger_push...what we were thinking). anyway, I'll let you know if I find something useful.

Hey! I really appreciate that you're trying! :cheese:
 
Back
Top