guduwuqi Posted October 5, 2019 Share Posted October 5, 2019 Hi I try to change a npc's class via dialogue,here is my script: ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname _loli_TIF__05070EF7 Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEActorBase pActorBase = akSpeaker.GetActorBase()pActorBase.SetClass(AClass);END CODEEndFunction;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment Class Property AClass Auto but it won't compile,the error is SetClass is not a function or does not exist.How can I fix this problem? Link to comment Share on other sites More sharing options...
guduwuqi Posted October 5, 2019 Author Share Posted October 5, 2019 problem solved Link to comment Share on other sites More sharing options...
Recommended Posts