Jump to content

SetClass is not a function or does not exist


guduwuqi

Recommended Posts

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 1
Scriptname _loli_TIF__05070EF7 Extends TopicInfo Hidden
;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
ActorBase pActorBase = akSpeaker.GetActorBase()
pActorBase.SetClass(AClass)
;END CODE
EndFunction
;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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...