hexef Posted August 10, 2015 Share Posted August 10, 2015 Is there a function that returns the unique editorID name of a reference in the world?For example,if I place an actor in the world and I name it ActorRef01,can I use some sort of function that returns "ActorRef01" when called?GetSelf doesn't return "ActorRef01" for me... Link to comment Share on other sites More sharing options...
Fallout2AM Posted August 11, 2015 Share Posted August 11, 2015 There's more than a way to retrieve a reference, based by the situations. For example GetSelf returns the ref ID when called inside an object script attached to the ref itself, or on a spell casted on the ref. Or you can retrieve the reference who's activating something with GetActionRef. Etc.etc.If you provide more details on what you are doing, maybe I could provide more help in the script itself. Link to comment Share on other sites More sharing options...
hexef Posted August 12, 2015 Author Share Posted August 12, 2015 Thanks for the answer but I already resolved this problem...Actually,all I needed was the ActorRef01 ref ID to be used in any object script.So ActorRef01.GetSelf did it for me. Now I have another small question,how can I return the NPC type in a script?For example,if I spawn any Fiend in the world,how can I check if it is actually a Fiend?I mean,we have a lot of Fiend Base IDs in Geck (1EFiendViolet,Fiend1GunHMNV,SpawnOVSewerFiend2Rifle,...and the list continues on and on...) how can I categorize the NPC as a Fiend in a script ?Something like [insert fiend npc ref].IsFiend OR[insert Jackal npc ref].IsJackalIs it possible? Link to comment Share on other sites More sharing options...
Fallout2AM Posted August 12, 2015 Share Posted August 12, 2015 You must look for a common denominator. Usually the faction is a common denominator, so GetInFaction could make the trick. Link to comment Share on other sites More sharing options...
hexef Posted August 12, 2015 Author Share Posted August 12, 2015 Thanks a lot ! The GetInFaction trick worked very well for me. Link to comment Share on other sites More sharing options...
Recommended Posts