spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Region functions and properties

RunInteraction (region)

(Formerly known as RunRegionInteraction, which is now obsolete)

Region.RunInteraction(int event)
Runs the event handler as if the EVENT for the region had been activated.

NOTE: Unlike the other RunInteraction commands, this one does not take a cursor mode. Instead, it uses an event type as follows:

0 While player stands on region
1 Player walks onto region
2 Player walks off region

Example:

region[4].RunInteraction(1);
will run the actions defined in the event handler script for "Player walks onto region" for region 4.

See Also: Character.RunInteraction, Hotspot.RunInteraction


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.