Difference between revisions of "CBlob::SetFacingLeft"
From King Arthur's Gold Wiki
(Created page with "<onlyinclude> </onlyinclude> <syntaxhighlight lang="cpp"> void SetFacingLeft( bool left ) </syntaxhighlight> Object method of: CBlob Category:Scripting [[Catego...") |
|||
| Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
| − | + | Sets blob's facing to left or right, depending on boolean parameter | |
</onlyinclude> | </onlyinclude> | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
| − | |||
void SetFacingLeft( bool left ) | void SetFacingLeft( bool left ) | ||
| − | + | </syntaxhighlight> | |
| + | |||
| + | |||
| + | Example (This example sets blob to face left): | ||
| + | <syntaxhighlight lang="cpp"> | ||
| + | blob.SetFacingLeft( true ); | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | Example (This example sets blob to face right): | ||
| + | <syntaxhighlight lang="cpp"> | ||
| + | blob.SetFacingLeft( false ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 21:26, 1 October 2012
Sets blob's facing to left or right, depending on boolean parameter
void SetFacingLeft( bool left )
Example (This example sets blob to face left):
blob.SetFacingLeft( true );
Example (This example sets blob to face right):
blob.SetFacingLeft( false );
Object method of: CBlob