Ritualistic Forums

Go Back   Ritualistic Forums > Ritual Entertainment Games > SiN Episodes > SiN Episodes Editing

Reply
 
Thread Tools Display Modes
Old 07-28-2006, 12:46 PM   #1
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Entity Help

Hey, ive just started to learn how to use SDK so far im okay with it i can spawn NPCs, Props, Weapons etc..But im having trouble.
I wanna make the NPCs Attack as soon as they spawn so they go straight for the player, (all they do at the Mo is stand about until i walk up to em) I want them to attack as soon as they spawn even if they are a fair distance away.

Anyone tell me how to do this? Please and thanks
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 12:55 PM   #2
wisecode
Experienced
 
wisecode's Avatar
 
Join Date: May 2006
Location: Tennessee U.S.A.
Posts: 134
Send a message via MSN to wisecode
Default Re: Entity Help

ai_relationship
Subject: npc_enemyfinder
Target: !player
Disposition: Hate
Start active: Yes

npc_enemyfinder
(Check the flags and properties)
Give it a Squad and Start on.

Flag "Think outside PVS" if you want the NPCs to see around corners, have extended senses.
wisecode is offline   Reply With Quote
Old 07-28-2006, 01:12 PM   #3
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Re: Entity Help

Okay ive done that, the Entities see me but they still just stand there. Is there something more i should do?

Last edited by Xpiredperson : 07-28-2006 at 01:33 PM.
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 01:34 PM   #4
MeatPuppet
Level Designer
 
Join Date: May 2004
Posts: 123
Default Re: Entity Help

The npc needs to be in the same squad as the enemy finder. Also, NPCs won't atack the player if there is no path nodes for them to use to navigate. If there are no path nodes they will only atatck if you get close enough and they have line of sight.
You can also use a scripted sentence that tells that NPC to set its goal entity as the player and to run to the player.
MeatPuppet is offline   Reply With Quote
Old 07-28-2006, 02:40 PM   #5
Xpiredperson
Experienced
 
Xpiredperson's Avatar
 
Join Date: May 2006
Location: Under the Stairs :)
Posts: 146
Default Re: Entity Help

Sorry to be a major noob but can someone post an example or really dumb it down for me
Xpiredperson is offline   Reply With Quote
Old 07-28-2006, 03:17 PM   #6
BloodShed
Regular
 
BloodShed's Avatar
 
Join Date: Apr 2006
Location: Denmark
Posts: 90
Send a message via ICQ to BloodShed Send a message via AIM to BloodShed Send a message via MSN to BloodShed
Default Re: Entity Help

Did you remember to place info_nodes?
http://developer.valvesoftware.com/wiki/Info_node

--------------------
Babes, Bullets, Bombs. DAMN I love this job!
BloodShed is offline   Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:28 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.