I'm trying to get an actor to do one animation when I click a dialogue option, do a second one when I click the same option again, go back to the first if I click it again, etc. So alternating between the two animations by only clicking one thing.
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 5Scriptname TIF__01001D92 Extends TopicInfo Hidden;BEGIN FRAGMENT Fragment_4Function Fragment_4(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODE;1=sit, 2=layif isSit == falseDebug.SendAnimationEvent(akSpeakerRef, "idleSitStart")isSit = trueelseif isSit == trueDebug.SendAnimationEvent(akSpeakerRef, "idleLayStart")isSit = falseendIf;END CODEEndFunction;END FRAGMENT;END FRAGMENT CODE - Do not edit anything between this and the begin commentBool Property isSit = False Auto
It only ever does the first animation, in this case "idleSitStart," but I could swap the two and it would only do "idleLayStart." Any ideas?
I can't seem to get indents to work right the the [code] tag.