Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
|
08-20-2004 09:53
I accidentally had llSetDamage(20) on a bullet script.
It requires a float, of course 20 is a integer.
The completely bizarre result? The z-axis of the trajectory of the bullet was randomized between about +/- 30 degrees-ish from where I aimed.
VERY weird. Word to the wise.
-Hiro Pendragon
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
08-20-2004 10:07
the argument to llSetDamage() should get cast to a float, resulting in absolutely no difference between invoking the function as :
llSetDamage(20)
- or -
llSetDamage(20.0)
If you're seeing a difference here, then it is most definitely an LSL bug. Report it.
- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
08-20-2004 10:15
If I recall, once you are over a certain distance in a simulator, llSetDamage makes no difference; the damage is based upon the velocity of the projectile, etc. Hence the randomization. This is what I've been told, anyway. It's not necessarily a bug so much as a fact about the function. 
|
Hiro Pendragon
bye bye f0rums!
Join date: 22 Jan 2004
Posts: 5,905
|
08-20-2004 10:25
Nope, once I changed it back to 20.0 it was fixed 
|