SOLVED: Disable Hotspot in global

Started by Slasher, Mon 15/10/2012 16:25:37

Previous topic - Next topic

Slasher

I'm trying to disable a hotspot in the global after an event. I have tried giving the hotspot a name but to no avail, global will not accept. It is used if the player uses an inventory item in a certain room.

There may be another way (room rep exec if player has inventory then hotspot disabled perhaps?)

can you help


Khris

In a global context, use the hotspot[] array

Code: ags
    if (player.Room == 4) hotspot[2].Enabled = false;

Slasher

So

Code: AGS
 else if(cELF.ActiveInventory==icarpet && cELF.Room==27 && bottle==true) hotspot[2].Enabled = false;


would do the trick then.

cheers Khris



SMF spam blocked by CleanTalk