Need Help with SetObjectIgnoreWalkbehinds(int Object, int ignore) script

Started by Gold Dragon, Tue 21/10/2003 19:20:21

Previous topic - Next topic

Gold Dragon

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
Want to see how I am doing and how far I've gotten in my game? Visit my forum  http://www.freepowerboards.com/DragonKnight

Ishmael

knowing how it is in the script, and what error, would help us help you :)
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Pumaman

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?


Gold Dragon

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?
Want to see how I am doing and how far I've gotten in my game? Visit my forum  http://www.freepowerboards.com/DragonKnight

MrColossal

you can't put it in the room script, put it in "player enters screen before fade in" and i bet it works
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Gold Dragon

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)
Want to see how I am doing and how far I've gotten in my game? Visit my forum  http://www.freepowerboards.com/DragonKnight

SMF spam blocked by CleanTalk