Not signed in (Sign In)

Discussion Tag Cloud

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Is there a tripple launch script? If so, does anyone know where I can find it?
    •  
      CommentAuthorZergei
    • CommentTimeApr 20th 2017
     
    I'm very sure this man ^^ has done this, try to look around for his script :)
  2.  
    It's on steam and called multi launch script ;)
  3.  
    ^thanks
    •  
      CommentAuthorrcth
    • CommentTime2 hours ago
     
    How can you attach an object or something to the player's "view"? For example in the Terror Tracks project, you have the splashscreen showing when you load the park and it keeps in front of the screen, no matter the camera orientation.
    •  
      CommentAuthorYedrimas
    • CommentTime1 hour ago edited
     
    You can get the current view of the player using sim.getViewMatrix(matrix).
    Then using multLeft (or multRight I can never remember..) you can move the object in front of the view.

    import com.nolimitscoaster.*;
    import nlvm.math3d.*;


    public class frontView extends Script
    {
    private SceneObject so;
    private Matrix4x4f multMat;
    private Matrix4x4f viewMat;


    private float x_val = 0;
    private float y_val = 0;
    private float z_val = -5;

    public bool onInit()
    {
    so = sim.getSceneObjectForEntityId(getParentEntityId());
    if(so == null)
    {
    System.err.println("Not attached to a scene object");
    return false;
    }

    multMat = new Matrix4x4f();
    viewMat = new Matrix4x4f();
    multMat.initTrans(x_val,y_val,z_val);
    return true;
    }

    public void onNextFrame(float f)
    {
    sim.getViewMatrix(viewMat);
    viewMat.multRight(multMat);
    so.setMatrix(viewMat);
    }

    }