Region disabling

Started by Granknight, Sun 07/01/2007 14:45:12

Previous topic - Next topic

Granknight

i have created a region in my room, if you walk on it you receive an item. how do i make it work only one time?
Because if i walk off and then on again it repeats the interaction.

Ashen

#1
From the BFAQ:
Quote
Please keep the following in mind. Most of our problems can be easily solved using variables. Need to change a hotspot's state in another room? Use variables! Need an object to be used only once? Use variables! You can either use Global Integers and Global Strings (look inside the AGS manual for these) or custom variables.

And variables are what you need. Check the BFAQ, Manual and forums for more details on using them.

Or, you could just turn the Region off when the interaction has run, if it has no further use. (Region.Enabled property).
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk