Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

What am I doing wrong?

Elmore Philbin
www.philelmore.com
Join date: 12 May 2007
Posts: 73
07-31-2007 05:24
In an attempt to build a crude prototype hovertank, I rezzed a wedge-shaped object and then opened two other items -- a basic landspeeder vehicle that does work, and a basic blaster weapon that also does work, both of them freebies.

I put into the prototype wedge the scripts from the landspeeder, which resulted in a drivable wedge that usually operates (but which does some strange things that the landspeeder does not do, such as pointing towards the sky for no reason - does this have anything to do with the relative weight of the objects, if they can have weight?). The result was that the scripts were indeed operating and my av could drive the wedge as he could the landspeeder.

When I put both the bullet from the gun and the script from the gun into the same wedge, however, the result was that nothing happened. When my av drives the wedge the weapon doesn't work at all.

What am I doing wrong? I'm new to all this and pretty ignorant.
Elmore Philbin
www.philelmore.com
Join date: 12 May 2007
Posts: 73
07-31-2007 10:19
Anyone have any ideas? Or am I just hopelessly stupid?
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
07-31-2007 10:27
Well, we're not sure what the question is pertaining to scripting.

You made a prim build (a wedge; not script-related), and put freebie scripts from other objects into it and it doesn't work. While this may be a long shot, have you tried IMing the authors of those scripts/objects? It sounds more like a product support issue (though I wouldn't necessarily support someone who ripped apart one of my products to make a hybrid of their own).

Outside of that, I can't answer a generic "what's wrong?" question without detailed info on the scripts involved. The only things I can guess at are that the scripts conflict with one another, or crashed, or aren't set running... really, the possibilities as to what could be wrong are endless.
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
07-31-2007 11:03
Often vehicles are made of lots of prims, with one as the sit-position prim. This sit-position prim makes it easier to do things like get the sit location right, and adjust its rotation without messing with the rest of the vehicle.

So you might try that. Make a little ball, put in on the wedge where you want to sit. Delete all the scripts in the wedge. Make sure all the ball rotation parameters are 0 in the edit pane. Put all the scripts in the ball. Then link the wedge and the ball together using Tools > Link. (make sure the ball is the last thing selected when you link them, so it is the root prim).

See if that makes a difference.
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
07-31-2007 14:39
(I avoid both weapon and vehicle scripts, so my ignorance here is at least doubled if not squared :o , but ...)

If either the weapon or the vehicle script llTakeControls() with the final "pass_on" parameter FALSE, won't it essentially disable the other, for any controls it accepts? (Or maybe the gun and the vehicle don't accept any of the same controls anyway: not obvious what a vehicle would want with mouse button events.)

In any case, just for debugging sanity, I might try clicking off the "Running" box of the vehicle script (or just removing it temporarily), to see how the weapon works in the wedge all by itself.