Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is the automatic state to execute.
- auto state Idle
- {
- // When touched by another actor...
- function Touch( actor Other )
- {
- log( "I was touched, so I'm going to Attacking" );
- GotoState( 'Attacking' );
- Log( "I have gone to the Attacking state" );
- }
- Begin:
- log( "I am idle..." );
- sleep( 10 );
- goto 'Begin';
- }
- // Attacking state.
- state Attacking
- {
- Begin:
- Log( "I am executing the attacking state code" );
- //...
- }
Add Comment
Please, Sign In to add comment