CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
|
01-05-2005 23:17
if there a way to reset a sword fight script and still have the script work
cos i use llListen in my script since i want to change some vars in it and i cant give it to ppl since the owner is alwais set to me and if i do reset the script then the fight dosnt work
|
Evil Fool
"==" != "="
Join date: 30 Jul 2004
Posts: 110
|
01-06-2005 07:42
nvm my post, didn't understand the question try to word your posts a little bit more clearly, or buy me a cup of coffee in the morning 
|
Karizon Hatfield
Second Life Mentor
Join date: 22 Oct 2004
Posts: 18
|
01-06-2005 09:17
or, you can do something much simpler... llListen() returns a handle which allows you to destroy it later with llListenRemove()... so what you can do is in your state_entry() set a global variable like "my_listen" my_listen = llListen(666,"",llGetOwner(),""  ; and then in on_rez() you can do this: llListenRemove(my_listen); my_listen = llListen(666,"",llGetOwner(),""  ; or however you hvae your llListen call set up - this will cause the listen to reset itself every time this object is rezzed, including attached to a new AV.
|
CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
|
01-06-2005 16:28
hehe sorry im dislexic so i cant type very well plus it was like 3am for me witch dosnt help 1 bit thx for the code idea il try it
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
01-07-2005 02:32
Welcome fellow dyslexic.
|
CaptnPower Codesmith
Second Life Resident
Join date: 9 Nov 2004
Posts: 58
|
01-07-2005 11:01
hehe just an update it worked fine and ya i noticed i made a mistake in dYslexic but heck....
|