"OnEnterRegion"-function -[solved]-

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

Post Reply
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

"OnEnterRegion"-function -[solved]-

Post by Aman/Pinguin »

Hi everyone,
actually I already used the "OnEnterRegion"-function but it doesn't work this time and I have no idea why.
I already checked if everything is named correctly, yes it is.

Code: Select all

		OnEnterRegion(
	function(regIn,character)
	PauseAnimation("none");
	RewindAnimation("fahrstuhl");
	PlayAnimation("fahrstuhl");
	end,
	"Eingang_Fahrstuhl1"
	)

"fahrstuhl" = Animation which should be played when someone enters the region
"Eingang_Fahrstuhl1" = Region someone needs to enter to start the animation



Note:

PauseAnimation("none"); is not the problem, it worked for other functions already.


EDIT: Nevermind, I just fixed it. I forgot the

Code: Select all

ActivateRegion("Eingang_Fahrstuhl1")
line.
Post Reply