Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Someone Please Help

Kain Cleaver
Registered User
Join date: 24 Jan 2006
Posts: 178
02-09-2006 03:11
I would like to figure out push explosions without physical touch.

I am currently using the script for C4 which allows you to blow it up using the command /5 boom

however my problem is that anyone can easily activate this explosion and i want it to listen to me and me only.

so im asking how does this explosion push without a physical contact??????

ive tried several different versions. all seem to push the object its comming from and not me.

can someone direct me to a open source/modable explosive that doesnt involve the victim physically stepping on or touching the object??????
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
02-09-2006 07:57
moved from the scripting library.
_____________________
i've got nothing. ;)
Folco Boffin
Mad Moo Cow Cultist
Join date: 27 Feb 2005
Posts: 66
02-09-2006 08:10
Filter out other people when using llListen(). For example:

CODE
integer myListen = llListen(5, "", llGetOwner(), "");


That will make it listen to only the owner of the object the script is in.

And be careful with explosives, you could get hurt. :D
_____________________
^-^

Signed,
Gorgarath,
Whom in this game called Second Life,
plays the avatar Folco Boffin,
and in this game called First Life,
plays the avatar John McDonnell.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
02-09-2006 11:09
The basic trick is to listen, fire a sensor off and push the detected objects.

Push GENTLY and be warned in most places it counts as an abuse. It's borderline acceptable in damage enabled parcels, although I suspect it's actually strictly against the TOS even there.
Kain Cleaver
Registered User
Join date: 24 Jan 2006
Posts: 178
02-10-2006 04:46
im aware of the push consiquenses .. but i like to have fun with friends too.

im still not undestanding though..

so far my best push has come from spawning a ball near someone and hoping the reaction pushes them but no luck.

the c4 script just makes this blast radius that pushes people near it.. and i cant figure out how it does it..

how do you make a blast radius and push all people say in a 10m radius?

can someone please help ? premade scripts greatly appreciated so i can learn faster .. and yes i do learn..not just take your work hehe

thank you
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
02-10-2006 06:26
I don't have the time to write a script, so I'll write it in flowchart form and point you at the wiki.

1) set up a listen just to you (llListen())
2) in the listen event fire a sensor (llSensor()) using the AGENT type and a 10m range
3) in the sensor event a for loop for the number detected.
4) in the for loop an llPushObject() line using the key of the detected av (llDetectedKey()), some sort of force equation - you may also wish to allow for the mass of the avie (llGetObjectMass()) and the distance away (llVecDist(), llDetectedPos() and llGetPos()).
5) since exploding objects then die, llDie().
6) in a no-sensor event llDie() as well.

Start from http://secondlife.com/badgeo/wakka.php?wakka=HomePage for all your function queries.