Difference between revisions of "Talking Creatures?"

1,185 bytes added ,  18:53, 5 June 2006
my version
imported>TheImperialDragon
(The script...)
imported>DragoonWraith
(my version)
Line 168: Line 168:


</blockquote>
</blockquote>
::[[User:DragoonWraith|<font face="Oblivion,Daedric" size=3>D</font>ragoon <font face="Oblivion,Daedric" size=3>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 18:53, 5 June 2006 (EDT): MoveToMarker? I don't think that exists, you want [[MoveTo]]. Also, I would suggest doing the "look" this way:
scn TalkingCreature
short doOnce
Begin GameMode
  Talker.SetActorAlpha 0.0
  if ( doOnce == 1 )
    Talker.StartConversation player GREETING
  elseif ( doOnce == 2 )  ;set to 2 by GREETING, so after the greeting has played and we're back in GameMode
    StopLook
  endif
End
Begin OnActivate
  Look player
  Talker.MoveTo GoblinPassive
  set doOnce to 1
End
::That way the Goblin only looks at the player when the player activates the Goblin, and the talker is only moved once, during when the Goblin is activated, so you don't need to make the game do that every frame. The Goblin stops looking when the conversation is over.
::The look stuff might be better with distance checking, however, if you want the Goblin to turn to the player when the player gets near, and keep looking til the player leaves. 


[[Category:Questions]]
[[Category:Questions]]