These forums are CLOSED. Please visit the new forums HERE
rez from inventory vs. rez after TP |
|
CyanAura Femto
Registered User
Join date: 1 Feb 2004
Posts: 14
|
12-11-2005 04:49
When an ageent attaches a scripted object from inventory, the 'on_rez(integer param)' event and 'attach(key attached)' event are triggered. The same is true when an agent wearing the attachment comes out of a teleport condition. How can a script in an attached object tell the difference between rezzing from inventory vs. rezzing after a teleport?
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
12-11-2005 09:06
The answer is that it can't. To an object, both instances are exactly the same.
_____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
Jillian Callahan
Rotary-winged Neko Girl
![]() Join date: 24 Jun 2004
Posts: 3,766
|
12-11-2005 09:24
You can, sort of. Check llGetAttached() in your on_rez() check. If it returns zero, it's probably been rezzed in-world, anything else and it's attached, so it's probably a TP rez (or just then attached).
_____________________
|