Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Gold Dragon on Tue 21/10/2003 19:20:21

Title: Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script
Post by: Gold Dragon on Tue 21/10/2003 19:20:21
Hey guys... first off I would just like to thank CJ for making a wonderful adventure game engine for all of us.

ok the point...   I have a table in the middle of my room that of course I used a walkbehind defined area on. I also have a hotspot on it to interact with an object in my inventory so I can put my inventory item on the table. When I turn the room object back on (to simulating putting the inventory item on the table) it always puts it behind.

so I tried the SetObjectIgnoreWalkbehinds in the room sript

like this...

SetObjectIgnoreWalkbehinds(4,1);

and it always comes up with an error.. there is nothing before it or after it.

if you guys have any ideas I would really apprieciate it..

thank you ;D ;D ;D
Title: Re:Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script
Post by: Ishmael on Tue 21/10/2003 20:27:11
knowing how it is in the script, and what error, would help us help you :)
Title: Re:Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script
Post by: Pumaman on Tue 21/10/2003 20:45:58
Hehe yes, you'll need to tell us the exact error message.

The only possible error I can think of with that command is using an invalid object number - are you sure that the room object is object 4?

Title: Re:Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script
Post by: Gold Dragon on Wed 22/10/2003 00:37:56
I put it in just I saw it in the manual

SetObjectIgnoreWalkbehinds (4,1);

so in my room script it is..

// room script file
//SetObjectIgnoreWalkbehinds(4,1);

just like that nothing is before it or after it.

all the interaction with object 4(which is the cutting board) is done with the editor and not script..

The Error that pops up says..

There was an error Compiling your script. The problem was:
In: 'Main script'
Error (line 2): Parse Error: unexpected'SetObjectIgnoreWalkbehinds'

I don't know how else to implement this script?
Title: Re:Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script
Post by: MrColossal on Wed 22/10/2003 01:27:36
you can't put it in the room script, put it in "player enters screen before fade in" and i bet it works
Title: Re:Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script
Post by: Gold Dragon on Wed 22/10/2003 06:32:46
That did it!!!!!!!!!!!!!!!!!!!!!!
;D ;D ;D ;D ;D ;D ;D ;D
thank you very much guys...  

I hope you guys will bear with me because there will be more posts in the future

see you guys around
8) 8)