Jump to content

People falling off problem


MRYUCK

Recommended Posts

Hiya, I'm Mr.Yuck. XDD Love the site, been downloading awesome mods. So much, I wanted to experiment and make my own little mod.

 

But I've hit a brick wall. I've been able to figure a lot of things out thanks to the Wiki online, but I can't for the life of me figure something out. You see, my mod involves a realm of bleak nothingness. There's just stairs that go up to an individual of certain importance. But my problem is, with no barrier to keep you on the stairs, you could just fall off the edge and get stuck. @_@ I saw in one awesome mod called "Midas Spells" that when you fall off the edge in the Astral planes, it transports you back to a certain place. How do you do that? I wanna make it so if you fall off the edge, it'll send you back to the entrance to the realm where you can try and go up the stairs again. It's not that difficult really, the stairs are very wide. XDDD Very quick way to get back down the stairs too, just fall off. XP

 

:thanks:

Link to comment
Share on other sites

I think 'teleporting when you fall' is done by using triggering zone. Check Camoran's Paradise, I remember when you wander too far off the palace, you will be teleported at the exit of 'Forbidden Grotto'. And if you want to prevent player character from falling, you can use collision box as some kind of barrier.
Link to comment
Share on other sites

Triggerzones are a good way to do it

 

Create, scale and tilt one or more TZs and place them under the stairs in such a way that the player falls on the TZ.

 

And a script the TZ to move the player to an XMarkerHeading placed at the entrance.

 

Problem is that moving the player in an OnTrigger block requires some kind of timer.

A script like this should work:

 

ScriptName MyTriggerZoneSCRIPT
short xFrame
begin OnTrigger Player
if xFrame
	set xFrame to xFrame - 1
else
	set xFrame to 1
	Player.MoveTo MyEntranceMarker
endif
end

Link to comment
Share on other sites

Mryuck, just so you know, in QQuix's above example where he states

 

If xFrame

 

Has the same meaning as typing

 

If xFrame != 0

 

Personally I still type out the "!= 0" bit myself as for one, it's habit, and two, it's easier for me to read my own scripts. When I seen QQuix do that the first time he helped me it confused the bejebus out of me until the little light bulb went 'ding!'

 

...Sadly, my light bulb seems to be burnt out and I can't find a replacement.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...