shosey Posted March 28, 2005 Share Posted March 28, 2005 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 ********************************** Nevermind - I found it Link to comment Share on other sites More sharing options...
Xcom Posted March 28, 2005 Share Posted March 28, 2005 Check FactionID value in the UTC file. I think number 5 was neutral. Don't remember for sure. Link to comment Share on other sites More sharing options...
shosey Posted March 28, 2005 Author Share Posted March 28, 2005 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 More sharing options...
enjinc2000 Posted March 28, 2005 Share Posted March 28, 2005 Edit: Sorry, didn't mean to be rude. Still new to the forums. Link to comment Share on other sites More sharing options...
Darkkender Posted March 28, 2005 Share Posted March 28, 2005 Originally posted by enjinc2000 Sorry to go off-topic, but any chance for high stakes Pazaak for KOTOR2, shosey? This type of question is best left for PM's or the mod request thread. As this can be considered rude. Link to comment Share on other sites More sharing options...
Xcom Posted March 28, 2005 Share Posted March 28, 2005 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. 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 More sharing options...
shosey Posted March 28, 2005 Author Share Posted March 28, 2005 Oh well, Thanks for the input Xcom. The snappy appear when the object is created is fine - just thought a fade in might be nice Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.