Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design

Reply
 
Thread Tools Display Modes
Old 07-30-2012, 01:37 PM   #1
FF.GHoST61
 
 
 
Join Date: Oct 2011
Reputation: 262
Posts: 794
Lightbulb [Tutorial] Force Npc search and attack !player

Hello.
I see some beginners having problems with this and i decided to make a tutorial.
Using this method npc will always attack you wherever you hide.

Step 1:
Click on your entity tool and create npc_zombie(example)

Step 2: Npc values
Name - zombie1
now click "Flags" and check "Template NPC (used by npc_maker, will not spawn)".

Step 3: Spawn Destination
Click on your entity tool and make "info_npc_spawn_destination" and name it "dest1". This is where your npc or npc's will spawn.

Step 4 Template Maker
Click on your entity tool and make "npc_template_maker".Set Name of template NPC "zombie1"
Start disabled - Yes
Other Values can be different , all up to you.
Now go to Flags section and make sure everything there is unchecked.

Step 5: aiscripted_schedule
Click on your entity tool and make "aiscripted_schedule".
Values:
Name - AISchedule_Seeker
Target NPC - zombie1
Search Radius - 0
Al state to set - Set state to COMBAT
Schedule to run - Walk to Goal Entity ( optional)
Interruptability - Damage or Death
Goal entity - !player (this might be red so ignore it)
Now go to Flags section and check "Repeatable".

Step 6:
Go to your npc_template_maker > outputs.
Add: OnSpawnNpc Target Entity: ALSchedule_seeker Target Input: Start Schedule Delay: 0.00

Congrads Done. Now if you want to spawn just Enable npc_template_maker.
I'm not going to tell you how to do that, Triggers, buttons.. Up to you.

Hope this helped and sorry for my terrible english.

Last edited by FF.GHoST61: 07-30-2012 at 01:42 PM.
FF.GHoST61 is offline  
Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 05:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.