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
Normally when i want a script ran when the room is loaded i place it within:
Code: AGS
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!
Problem: when I enter this specific room, I want to run this if/else statement:
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:
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!