Page 1 of 1

"OnEnterRegion"-function -[solved]-

Posted: Thu Jun 12, 2008 11:16 am
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.