Attach/pl

From Second Life Wiki
< Attach
Revision as of 09:42, 23 February 2008 by Sebast Forwzy (talk | contribs) (New page: {{LSL_Event |event_id=23 |event_delay |event=attach |p1_type=key |p1_name=id |p1_desc=Zwraca klucz awatara lub pusty klucz jeśli obiekt jest zdejmowany}}. |p1_hover=Zwraca klucz awatara l...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

   'event_desc' can not be undefined

(Please define a value for 'event_desc' to describe the events actions.)

Description

Event: attach( key id ){ ; }

event_desc undefined

• key id Zwraca klucz awatara lub pusty klucz jeśli obiekt jest zdejmowany

Examples

Deep Notes

Signature

event void attach( key id );

.

|p1_hover=Zwraca klucz awatara lub pusty klucz jeśli obiekt jest zdejmowany. |event_desc=Wywoływane przez założenie obiektu z skryptem lub jego zdjęcie |constants |spec |caveats |examples= Poniższy przykład pokazuje jak działa ten event, oraz jak można sprawdzić czy obiekt jest zdejmowany czy zakładany.

<lsl>default {

   attach(key id)
   {
       if(id)//Sprawdz czy id nie jest pustym kluczem
       {
           llSay(PUBLIC_CHANNEL,"I have been attached!");
       }
       else
       {
           llSay(PUBLIC_CHANNEL,"I have been detached!");
       }
   }

}</lsl> |helpers |also_header |also_events |also_functions= |-style="vertical-align:top;" | style="color:gray;" |• llAttachToAvatar/pl | | style="color:gray;" | | | |-style="vertical-align:top;" | style="color:gray;" |• llDetachFromAvatar/pl | | style="color:gray;" | | | |-style="vertical-align:top;" | style="color:gray;" |• llGetAttached/pl | | style="color:gray;" | | | |also_articles= |-style="vertical-align:top;" | style="color:gray;" |• Attachment/pl | | style="color:gray;" | | | |also_footer |notes |mode |deprecated |cat1=Attachment/pl |cat2=Event/pl |cat3 |cat4}}