9401 |
Set $self->somevalue to 1 |
2801 |
Begin jogging to Bond, then goto 01 |
07 |
Return to return function |
0201 |
Label 01 |
03 |
Yield |
2f06 |
If actor has stopped moving then goto 06 |
3207 |
If Bond is in sight then goto 07 |
0101 |
Go to first 01 |
0207 |
Label 07 |
05fd0006 |
Assign function 0006 - Take a shot to $self and advance frame |
0206 |
Label 06 |
07 |
Return to return function |
04 |
End of function |
* Start jogging to Bond - if this fails (eg. no path to Bond) then jump to return function
* Wait until not moving or Bond in sight
* If Bond in sight, assign 0006
* If reached target without seeing Bond, jump to return function