Jump to content

No Push on weapon worn WTeff


2toe Bigboots

Recommended Posts

The first thing that comes to my mind is that push is disabled on the parcel where you are doing your tests. In that case, the only thing a script can push is other objects and its owner.

There is no way around enabling push on the parcel first... and that cannot be done by script.

 

 

Link to comment
Share on other sites

Immie's got it. You can't register a "hit"on an attachment with a collision sensor. When you activate the gesture that swings your weapon, check with a sensor to see if there is another avatar within 1m of your location. If so, assume that you must have hit that av.  Record the hit and send a confirming message to the other av.

Link to comment
Share on other sites

Attachments do have collision events, however they're based on what the avatar hits, not on a seperate collision mesh.

You'll probably want to do a sensor on swing and then in the sensor event push anything detected.

 

Example:llSensor( "", "", AGENT, 3.0, 0.78 )

 

sensor(integer i){    do{        llPushObject(llDetectedKey(--i), <9.0, 90.0, 0.0>, <0, 0.0, 0.0>, FALSE);    }while(i);}

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...