Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Rocco on Mon 19/04/2004 16:34:31

Title: behind walkable area problem
Post by: Rocco on Mon 19/04/2004 16:34:31
i have a parking meter as walk behind area.
and after paying i would turn an object on in front off the meter, but cant see it.
Title: Re:behind walkable area problem
Post by: Darth Mandarb on Mon 19/04/2004 16:43:20
SetObjectIgnoreWalkbehinds

SetObjectIgnoreWalkbehinds (int object, int ignore)

Sets whether object OBJECT is affected by walkbehind areas. Passing 0 (the default setting) means that the object will be placed behind walk-behind areas according to the relevant baselines. Passing 1 means that the object will never be placed behind a walk-behind area. This is useful if for example you want an object to be a picture on a wall, and the wall can be walked behind - but you also want it to act correctly in relation to characters, so changing its baseline wouldn't work.

Example:

SetObjectIgnoreWalkbehinds (1,1);

will make object 1 ignore walk behinds.
Title: Re:behind walkable area problem
Post by: Rocco on Mon 19/04/2004 18:26:23
thx, works perfect.   :D