|
Amara Heart
Registered User
Join date: 17 Jan 2006
Posts: 11
|
05-31-2007 15:25
I am in the process of my very first scripting project. I have scripted an item with the help of some other open source scripts to read a collision and then give a blue dialog box with a message. Is there a way I can make the collision readable on only one side of the prim...for isntance..when entering through the doorway but not exiting it.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
05-31-2007 15:33
Instead, perhaps llDetectedVel() of the colliding avatar would help?
|
|
Aaron Edelweiss
Registered User
Join date: 16 Nov 2006
Posts: 115
|
05-31-2007 15:34
no, but you might be able to guess by determining the direction two objects ran in to each other from. combine what you collided with's velocity with your objects velocity and that might give you a pretty good guess.
|
|
Amara Heart
Registered User
Join date: 17 Jan 2006
Posts: 11
|
05-31-2007 15:39
From: Qie Niangao Instead, perhaps llDetectedVel() of the colliding avatar would help? Hmm I have no clue what that is *laughs* I am literally bran dnew to scripting.
|
|
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
|
06-01-2007 03:36
It means you can request the direction which the coliding object is going. Combined with the movement of your own object (if any), you could then sort out from which side the collision came.
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
06-01-2007 06:02
I created saloon type doors using two invisible phantom prims to detect colission on either side of the door (since they should swing in a different direction depending on if you're entering or exiting the saloon). I guess you could do the same here.. .___ |..|..| |..|..| |..|..| |..|..| |..|..| |..|..| |_|_|
If the lefthand prim is colided with first, hand out a notecard. If the righthand prim is colided with first, ignore colissions in the left hand prim till the colissions have ended... I agree it's not ideal and a bit more work but I think it'll work all the same.
Lyn
|