Global hotspot check (resolved)

Started by Darius Poyer, Wed 09/06/2010 18:44:39

Previous topic - Next topic

Darius Poyer

I'm using GetLocationType to change my mouse.Mode depending on what's under it and it works just fine, the problem I'm having is how to create exceptions.

I'm using the global scripts repeatedly_execute() function to see what the cursor is touching, but I have no idea how to get information from a hotspot in a room script to the globalscript function.

I'm using a hotspot to kill the character if you stay on it for too long, so I just don't want the cursor to change to eModeInteract for that specific hotspot.

Vince Twelve

You should probably use a region for that, then.

Otherwise, you could set custom properties on the hotspots that decides whether they trigger the mouse-over animation or not and then use hotspot.GetProperty("propertyName") in repeatedly_execute to decide whether or not to animate the mouse.

Darius Poyer

that should do it...

thank you Vince


SMF spam blocked by CleanTalk