Jump to content

Home

How can I make a neutral NPC?


shosey

Recommended Posts

Alright, here's what I want to do. I want to spawn a npc (doesn't matter what it is). However, when I'm being attacked - I don't want this character to fight or to be attacked. The character will not be a party member, it will just be spawned.

 

I tried looking through the utc file, but nothing caught my eye as to being a "neutral" field of sorts.

 

Any help would be most appreciated :D

 

 

 

**********************************

Nevermind - I found it :)

Link to comment
Share on other sites

yep, its 5 - I just found it before you posted - hehe.

 

I tried to delete the post, but you beat me to it :)

 

 

thanks ;-)

 

 

ok, here's another question.

 

I would love it if I could have the snazzy fade / fade out effects for when my npc is spawned and destroyed. I noticed for both the CreateObject and DestroyObject they have fields to enable these, however I can't seem to get them to work.

 

here's what I have.

 

CreateObject(OBJECT_TYPE_CREATURE, "interface", GetLocation(GetFirstPC()), TRUE);

 

 

and similarily

 

DestroyObject(GetObjectByTag("interface"), 0.0f, TRUE, 0.0f, 0); 

Link to comment
Share on other sites

Originally posted by shosey

question.

 

I would love it if I could have the snazzy fade / fade out effects for when my npc is spawned and destroyed. I noticed for both the CreateObject and DestroyObject they have fields to enable these, however I can't seem to get them to work.

 

here's what I have.

 

I don't think CreateObject has any fade effects. Last parameter for this function is supposedly UseAppearAnimation but I've never been able to make it work either. :giveup:

 

DestroyObject does work though and it's enabled by default, however, it works only for creatures and placeables. Just use smth like this:

 

DestroyObject(GetObjectByTag("interface")); 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...