Make object be ignored by cursor

Started by SN1984jm, Fri 20/05/2011 18:15:23

Previous topic - Next topic

SN1984jm

Is it possible to make an object completely non-existent as far as the cursor is concerned? I have a script which shows stuff like "walk to" and "look at" and I made it so that it shows nothing when there is nothing of interest under the cursor. So far this "nothing of interest" was covered by "GetLocationType(mouse.x,mouse.y) == eLocationNothing". But now I have an object moving around on the screen which should also be ignored. You can for example set this property on a character (Clickable = false). Is there a similar option for objects?

Ryan Timothy B

Look up:
Object.Clickable

If you knew of the Character.Clickable, why didn't you try Object.Clickable? The moment you type the period after the object, the auto complete has a list of available pointer functions for that type.

Or you could look in the manual for: Object functions and properties
Which shows all available pointer functions with descriptions to boot. Each type has their own functions and properties section in the manual.

TomatoesInTheHead

Quote from: Ryan Timothy on Fri 20/05/2011 18:42:38
If you knew of the Character.Clickable, why didn't you try Object.Clickable?
Probably because in the editor, the Clickable property is only available for characters, not for objects. This is indeed a bit inconsistent and allows for misleading logical deductions.


Khris

For characters, the Clickable property is listed in the property list under the project tree, not for objects though, you have to set it in script.

SN1984jm

Quote from: Ryan Timothy on Fri 20/05/2011 18:42:38
If you knew of the Character.Clickable, why didn't you try Object.Clickable? The moment you type the period after the object, the auto complete has a list of available pointer functions for that type.

I honestly don't know why I hadn't tried that, I really believed I had. Maybe it's so trivial that I automatically assumed I already tried it :p.

Well, thanks anyway.

SMF spam blocked by CleanTalk