|07-30-2012, 02:37 PM||#1|
Join Date: Oct 2011
[Tutorial] Force Npc search and attack !player
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.
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".
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".
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 02:42 PM.