Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sledgy on Thu 21/05/2020 00:29:55

Title: Exit from function
Post by: Sledgy on Thu 21/05/2020 00:29:55
There's a function Exit to go away from any function?

***

function AnyFunction() {

Display("Player sees it.");
exit;
Display("Player doesn't see it.");

}
Title: Re: Exit from function
Post by: Khris on Thu 21/05/2020 00:44:35
Code (ags) Select
  return;
Title: Re: Exit from function
Post by: Sledgy on Thu 21/05/2020 01:00:16
Thanks.