Nicky Turnbull
Registered User
Join date: 6 Feb 2005
Posts: 25
|
02-10-2005 13:26
alright, some of you may know i've made a paintball gun in SL, i used the popgun script to animate it, and i added a different sound, but i wanted it to feel like a real paintball gun, and to do that i need it to go faster, i changed the delay in it to 0.00000001 and nothing happened, if anyone could help.
|
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
|
02-10-2005 16:09
llRezObject() has a bit of a delay built into it... some say its 1 second, some say less... but it definitely puts a cramp in your style if you're trying to make high-ROF weapons. I worked around this by using multiple llRezObject() scripts, each with a stepped delay, triggered by link-messages. 
_____________________
- Making everyone's day just a little more surreal -
Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
02-11-2005 07:22
I think the delay is around 0.2. In other words, in my experience, I can rez about 5 objects a second if I'm just looping flat out. I also found that, even if I stuff a bunch of scripts into an object that each separately rez stuff, it'll still only go so fast. Probably fast enough for your purpose, but, for example, a "shotgun" effect comes out as a stream of rezzed objects, rather than a cloud all at once.
Maybe you could also consider having each ball rez another one just a little in front of it going at the same speed immediately upon rez, so that it looks like twice the shots have been fired. Be _careful_ that you don't end up with a chain-reaction of rezzing projectiles, though!
|
Rhombur Volos
King of Scripture & Kebab
Join date: 6 Oct 2004
Posts: 102
|
02-11-2005 08:02
The delay can vary with the mass of the object being rezzed, but this comes from my observations on scripting guns for vehicles, so this is probably linked to the fact that my ships are physical, and that the script draws from the ship's energy. Multiple rez scripts with increasing llSetTimerEvent delays worked fine with the chaingun on the soon-to-be-released Dolphin though.
|
Nicky Turnbull
Registered User
Join date: 6 Feb 2005
Posts: 25
|
02-11-2005 13:58
could anyone help with the popgun scrupt then, i can click 18 times per second, the script isnt fast enough, what did you do for the chaingun?
|