Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - weleavefossils

#1
First off, thanks in advance for the help. Just started to play within AGS over the last month and came across my first scripting question. I have been able to find the answers to most questions within the forum or manual, but seem to be stuck on this one.

Problem: when I enter this specific room, I want to run this if/else statement:

Code: AGS
if (oHallwayDoor1.Visible = true) {
  RemoveWalkableArea(2);
}
  else {
    RestoreWalkableArea(2);
}


Normally when i want a script ran when the room is loaded i place it within:

Code: AGS
function room_AfterFadeIn()
{
}


But I seem to get an unexpected "if" error message. I'm assuming this is a simple solution, but I seem to be missing it.

Thanks!
SMF spam blocked by CleanTalk