1041 === `Retreat(time [, respectGetAwayTimeFactor)` (0.9.25) === |
1041 === `Retreat(time [, respectGetAwayTimeFactor)` (0.9.25) === |
1042 Forces the current turn into the retreating phase, as if the hog made an attack. That is, the current hedgehog is unable to attack or select a weapon, only movement is possible until the retreat time is up. |
1042 Forces the current turn into the retreating phase, as if the hog made an attack. That is, the current hedgehog is unable to attack or select a weapon, only movement is possible until the retreat time is up. |
1043 |
1043 |
1044 The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme for some reason and set the retreat time no matter what, set `respectGetAwayTimeFactor` to `false`. |
1044 The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme for some reason and set the retreat time no matter what, set `respectGetAwayTimeFactor` to `false`. |
1045 |
1045 |
1046 If the current hedgehog was busy doing an attack, the attack is aborted, no shot is made. If this function is called in the ready phase of af a turn, the ready phase is not stopped immediately, but the turn will begin in the retreat phase instead. |
1046 If the current hedgehog was busy doing an attack, the attack is aborted, no shot is made. If this function is called in the ready phase of af a turn, the ready phase continues normally, but the turn will begin in the retreat phase instead. |
1047 |
1047 |
1048 Note: If you want the turn to end instantly, it is recommended to use `EndTurn` instead. |
1048 Note: If you want the turn to end instantly, it is recommended to use `EndTurn` instead. |
1049 |
1049 |
1050 ==== <tt>!EndGame()</tt> ==== |
1050 ==== <tt>!EndGame()</tt> ==== |
1051 Makes the game end. |
1051 Makes the game end. |