|
Lino Flanagan
Registered User
Join date: 31 Mar 2007
Posts: 3
|
04-03-2007 04:15
Hi all,
I've taken a look through this board and haven't found any clue yet but maybe it's because I'm just begining... So here's my problem: I have made an elevator out of a flat cylinder, that moves in a tube. I've already found how to make it work, I can even make sure the door is closed before it starts... Now how can I make sure the avatar is standing on it and not on its border? Cause in the second case the elevator may start leaving the avatar where it is. So I'd like to move the avatar to the center of the elevator before anything else starts. Where should I look?
Thanks in advance,
Lino.
|
|
Seet Carroll
Registered User
Join date: 6 Jan 2006
Posts: 12
|
04-03-2007 04:21
Have the avatar sit on the elevator, but change the sit target and override the sit animation. When the elevator arrives, unsit the avatar.
|
|
Lino Flanagan
Registered User
Join date: 31 Mar 2007
Posts: 3
|
04-03-2007 04:26
Hum yes that's an idea, thanks. But isn't there a way to do it without sitting?
|
|
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
|
04-03-2007 05:14
You could set a single sweep sensor with PI radians and a range slightly less than the size of your floor. Because your elevator is circular, a sphere will fit nicely as long as your scanner is in the center. IIRC, a sensor is run from the center of the containing prim, so if you place it in the floor it should be perfectly positioned.
|
|
Lino Flanagan
Registered User
Join date: 31 Mar 2007
Posts: 3
|
04-03-2007 05:18
I'll have to study sensors then I haven't used them yet  Thanks for giving me the direction. Seb.
|
|
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
|
04-03-2007 05:47
Very useful page: http://rpgstats.com/wiki/index.php?title=LlSensorIncludes some visualisations of the radians for different scans. If your floor is 5m though, a scan range of say 4.5 should ensure that the people in the scan are at least inside the doors enough that when it starts rising they will follow. Edit: That would be a total scan range of 4.5m, so in the scanner that would be 2.25m
|