KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Public Attributes | List of all members
KerbalInstructor Class Reference

A KerbalInstructor object controls the animated image of a kerbal instructor in a TutorialScenario. KerbalInstructors come with a stock emote animations that you can trigger by calling the appropriate functions. More...

Inheritance diagram for KerbalInstructor:

Public Member Functions

 KerbalInstructor ()
 
void PlayEmote (CharacterAnimationState st)
 Presumably, makes the instructor execute a given animation. More...
 
void PlayEmoteRepeating (CharacterAnimationState st, float repeatInterval)
 Presumably, makes the instructor execute a given animation repeatedly. More...
 
void SetupAnimations ()
 
void StopRepeatingEmote ()
 Presumably, makes the instructor stop repeating whatever animation you last told it to repeat. More...
 

Public Attributes

Animation anim
 
CharacterAnimationState anim_false_disagreeA
 
CharacterAnimationState anim_false_disagreeB
 
CharacterAnimationState anim_false_disagreeC
 
CharacterAnimationState anim_false_disappointed
 
CharacterAnimationState anim_false_sadA
 
CharacterAnimationState anim_idle
 
CharacterAnimationState anim_idle_lookAround
 
CharacterAnimationState anim_idle_sigh
 
CharacterAnimationState anim_idle_wonder
 
CharacterAnimationState anim_true_nodA
 
CharacterAnimationState anim_true_nodB
 
CharacterAnimationState anim_true_smileA
 
CharacterAnimationState anim_true_smileB
 
CharacterAnimationState anim_true_thumbsUp
 
CharacterAnimationState anim_true_thumbUp
 
Transform AnimationRoot
 
string CharacterName
 
bool DrawDebugPanel
 
Camera instructorCamera
 
Material PortraitRenderMaterial
 

Detailed Description

A KerbalInstructor object controls the animated image of a kerbal instructor in a TutorialScenario. KerbalInstructors come with a stock emote animations that you can trigger by calling the appropriate functions.

Constructor & Destructor Documentation

KerbalInstructor.KerbalInstructor ( )

Member Function Documentation

void KerbalInstructor.PlayEmote ( CharacterAnimationState  st)

Presumably, makes the instructor execute a given animation.

Parameters
stThe animation to execute.
void KerbalInstructor.PlayEmoteRepeating ( CharacterAnimationState  st,
float  repeatInterval 
)

Presumably, makes the instructor execute a given animation repeatedly.

Parameters
stThe animation to exectue.
repeatIntervalHow often to repeat the animation, in seconds?
void KerbalInstructor.SetupAnimations ( )
void KerbalInstructor.StopRepeatingEmote ( )

Presumably, makes the instructor stop repeating whatever animation you last told it to repeat.

Member Data Documentation

Animation KerbalInstructor.anim
CharacterAnimationState KerbalInstructor.anim_false_disagreeA
CharacterAnimationState KerbalInstructor.anim_false_disagreeB
CharacterAnimationState KerbalInstructor.anim_false_disagreeC
CharacterAnimationState KerbalInstructor.anim_false_disappointed
CharacterAnimationState KerbalInstructor.anim_false_sadA
CharacterAnimationState KerbalInstructor.anim_idle
CharacterAnimationState KerbalInstructor.anim_idle_lookAround
CharacterAnimationState KerbalInstructor.anim_idle_sigh
CharacterAnimationState KerbalInstructor.anim_idle_wonder
CharacterAnimationState KerbalInstructor.anim_true_nodA
CharacterAnimationState KerbalInstructor.anim_true_nodB
CharacterAnimationState KerbalInstructor.anim_true_smileA
CharacterAnimationState KerbalInstructor.anim_true_smileB
CharacterAnimationState KerbalInstructor.anim_true_thumbsUp
CharacterAnimationState KerbalInstructor.anim_true_thumbUp
Transform KerbalInstructor.AnimationRoot
string KerbalInstructor.CharacterName
bool KerbalInstructor.DrawDebugPanel
Camera KerbalInstructor.instructorCamera
Material KerbalInstructor.PortraitRenderMaterial

The documentation for this class was generated from the following file: