Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Tool.Path - Example of Script API in Combat Cubed

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
489 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 19, 2011

This uses the Ghosting mechanism in the Script API of Combat Cubed/Vertical Life. You can assign anything that has a UUID key and can have a position set for ghosting, such as objects, avatars and maybe particle system sources themselves too.

Here I created a LSL scripted HUD Tool which I used in Badnarik to record the road paths on the ground which I needed for my Traffic Vehicle system. I just whipped the scripted Tool.Path HUD up in a few minutes as I just re-used a bunch of modularised code.

The HUD rezzes a linked object called a Marker, which I used for the ghosting, the blue ring with the black box in centre. When the user clicks, the client recognises that the ghosting mechanism has a callback enabled, and so pushes the raycast data through to the listener by having the avatar "Say" the message on a channel that the script prefers to listen on (not a pre-defined static channel! The script announces what channel it prefers during the very first handshake). The client then also takes off the ghost and waits for more instructions. The HUD tells the client to re-use the same object as the ghost again and waits for more data, while also rezzing another object called Marked (the smaller opaque blue cylinders), which shows the marked location and spits out data to the user with llOwnerSay to clarify that the position was added to the path.

The Tool.Path is opensourced. But it requires the use of a Script API compatible client, which only exists in C3 and VL unfortunately due to my API being an unpopular and undocumented little hidden gem of Second Life.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Nexii :D

    

  • Cool stuff - I Love it.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more