disabling hotspots

Started by Nostrum, Thu 17/07/2003 22:12:32

Previous topic - Next topic

Nostrum

I've got a hotspot I want to disable and I have the game run this script:

DisableHotspot (6);

and for some reason the hotspot is still active. Got any help?

Scummbuddy

try putting a wait(1); right after that code.

dont forget needed braces.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Nostrum

Hm.. can you can explain to me how that would help?

Scummbuddy

if you give the engine a second to redraw the scene, i believe it will cause the hotspot to deactivate, or reactivate.

this is from my memory, but i could be wrong
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Nostrum

Nope, no luck. I put in "wait(40);" (40 equals a second) and still the hotspot doesn't disable. If anyone else has got any help, feel free to post. It's really perplexing to me that just "DisableHotspot (3);" isn't working...

jetxl

disablehotspot works on my computer.
Try testing it.

player walks on hotspot 3
disablehotspot(3);

maybe there is a problem somewere else

Minimi

you could try this... although I never tried it
before you go copy this, read it over, because im pretty sure i make some mistakes in writing this!

int hotspot_three = 0;


if (hotspot_three == 1);
disablehotspot (3);
}

if (hotspot_three == 2);
enablehotspot (3);
}



so now you only have to set the code when you want to

int hotspot_three = 1;


I really hope this will help!

SMF spam blocked by CleanTalk