Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Eject Bullets Wanted

Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
07-08-2009 10:14
I'm building a small gun for my security team at my night club and I'd like to learn how to install EJECT bullets into it. I also think I need some sort of server running that actually does the ejecting. If anyone has any ideas it would be greatly appreciated.

Thanks :)
Johnathan Padar
Registered User
Join date: 27 Jul 2005
Posts: 23
Eject Bullets Wanted
07-11-2009 05:14
Hello,
if you have a working gun, you just want the added effect of shells casings falling out on the ground? if so, its the same thing as the bullet does itself.. just no float or push.. no force, all it is, a emitter, or rez in the script, rezes the shell, instead of floats or forces it only has phisical turned on, so it just falls on the ground.. now you can get fancy and add a very very small force to the side, that will cause the bullet to fly out to the side of the gun a little then fall.. but that requires llSleep() here and there. and proper float numbers added..
But your question, most all gun related things in sl are not server related.. most all are just proper scripting, so you may post again in the scripting help section about this.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
07-11-2009 05:58
From: Shayna Korobase
I'm building a small gun for my security team at my night club and I'd like to learn how to install EJECT bullets into it. I also think I need some sort of server running that actually does the ejecting. If anyone has any ideas it would be greatly appreciated.

Thanks :)

Yeah, that would be pretty straightforward, I think. Have the bullet llRegionSay or llShout an "i hit this avatar" message when it collides. A listening server object belonging to the land owner can check if it the bullet belongs to a list of authorized avatars, then do the llEjectFromLand or llTeleportAgentHome on the key in that chat message if there is a match. Much hilarity ensues if the security people turn out to be lousy shots =)

You will probably want the bullet to be temporary but not to llDie right away, the listener will need to check who owns the bullet and a premature derez would get in the way of that.

If you trust the people with the bullets enough to allow them to eject people, the owner list is probably enough to do the job, super-secret channels or encryption are probably overkill.
Shayna Korobase
Registered User
Join date: 8 May 2007
Posts: 454
07-14-2009 11:00
thank you very much. The EJECT bullet was made and works perfectly. basically these are security officers that have eject rights on my land. So if they abuse it I simply kick them from group and the gun is useless. Thanks again for your help :)