Making a headcrab xen teleport

From Valve Developer Community
Revision as of 16:05, 13 August 2023 by MrBlackMesa1 (talk | contribs) (Created page with " == Creating Making a headcrab xen teleport == This guide will teach you how to make an npc (in this case a headcrab) teleport in-front of the player as seen throughout the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Creating Making a headcrab xen teleport

This guide will teach you how to make an npc (in this case a headcrab) teleport in-front of the player as seen throughout the campaign

Skill Level

This tutorial expects you to have this amount of knowledge within the topic to follow along smoothly.

Novice Familiar Competent Proficient Expert


Trigger Construction

The trigger

Start by creating a brush that uses the tools/toolstrigger texture
Next tie it to a trigger_once by pressing control + T

The trigger brush tied to a trigger_once

The trigger logic

Now in the outputs add the following:

  My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnStartTouch xen_spawner Spawn   0.00 No

The xen portal

Place a env_xen_portal with the following properties:

Property Name Value
Name xen_spawner
Frequency -1
Max Live NPCs 1
Class name of spawned NPC npc_headcrab


Note: you may play around with the Frequency, Max Live NPCs, Class name of spawned NPC parameters!

Warning.pngWarning:You may get issues if you change the Frequency value, such as it spawning over and over!

Final Setup

Your final setup should look like this;

The final result: