Jump to content

Can you change a texture of an object, when a "bullet" hits it


You are about to reply to a thread that has been inactive for 3274 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

integer giIndex;default{   collision_start(integer n)   {       if (llDetectedName(0) == "Bullet")       {           llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, giIndex =!giIndex), ALL_SIDES);        }    }}

This alternates between 2 textures in the prims inventory, when an object called "Bullet" hits it.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3274 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...