How to use the OnEnterRegion function (FAQ)

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Jedi Admin
User avatar
Posts: 7420
Joined: Mon Aug 21, 2006 11:03 pm

Re: How to use the OnEnterRegion function

Postby Maveritchell » Sun Jan 06, 2008 12:11 pm

Code: Select all
ActivateRegion("regionname")
testfunction = OnEnterRegion(
   function(region, player)
      if [whatever callbacks you want] then
         whatvever you want to happen
      end
   end,
"regionname"
)

First Lance Corporal
User avatar
Posts: 129
Joined: Thu Nov 01, 2007 12:44 pm
Location: Belgium

Re: How to use the OnEnterRegion function

Postby Eagle Eye » Mon Jan 07, 2008 12:22 pm

thanks!

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 3 guests