Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

changing whisper to open chat hit detection

Tonny Turner
Registered User
Join date: 8 Jul 2005
Posts: 20
05-09-2006 12:33
hi :)

the below script whispers to the hitter that they hit it i would like it to say it in open chat
as im useing it for archery target scoring.
can anyone tell me what i need to chnage to do it please ?

default
{
state_entry()
{
llSetText("Saying what hit me", <1,0,0>, 1.0);
}

collision_start(integer total_number)
{
integer f;
key id;
for (f=0; f<total_number; f++) {
llOwnerSay(llDetectedName(f) + " @ " + (string)llRound(llVecMag(llDetectedVel(f))) + "m/s";);
}
}
}


thanks for any help :)
Alphazero Sugar
Noob Tube
Join date: 24 Mar 2005
Posts: 60
05-09-2006 13:00
I believe you want to change that llOwnerSay to llSay(0, "My string here";);