Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

NPC Enemy Targets

Page: 1 of 1
 Blaster
07-18-2004, 7:09 AM
#1
Hi,

I would like to make NPCs only target and attack certain NPCs eg. Luke and Kyle to attack a Reborn but ignore another Reborn that is in their vincinity.

I've tried the 'enemy target' command in BehavEd and the 'locked enemy' commands but have not got them to work. :(

Does anyone have an idea on how to do this?

-Blaster
 Blaster
07-20-2004, 4:33 AM
#2
Please! Can any one help? :(
 Mercenary
07-20-2004, 8:44 AM
#3
post your script and I'll have a look at it
 Blaster
07-20-2004, 9:00 AM
#4
I haven't made a script. I need to know how to make it to do what I want it to do before I make a script.

Please help! It's important I know how to do this.
 Mercenary
07-21-2004, 6:30 AM
#5
OK, you have Vader and Luke right? Give them each and NPC_targetname, these are the names you'll use to refer to them in your script.

Example

Key:NPC_targetname
Value:Vader

the ICARUS commands would look like this:

//Generated by BehavEd

rem ( "comment" );

affect ( "vader", /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_ENEMY", "Luke" );
}

I haven't tried this myself so there are no guarantees but it's a start. I don't see what's preventing them from acquiring new enemies though.
 Blaster
07-21-2004, 7:38 AM
#6
Thanks Mercenary! I'll give it go.
 Blaster
07-25-2004, 2:18 PM
#7
I'm afraid that doesn't work Vader still attacks me as well as Luke.
Page: 1 of 1