Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Tindrone

  • Rank
  1. I believed it would work because from what i understand self.camera means I am selecting the object camera which is nested in my player pivot which the script is attached to. Is there a way to do that?
  2. my script now looks like this whenever I click on my arrows i get this my camera is named lowercase like in the script and is nested in my player entity.
  3. From testing it myself, it seems that MouseDown only registers when the mouse is pressed, meaning no matter where you click, you'll get the same result
  4. Thanks! I looked over your code and modified mine, my question now is how do I click on specific objects, Unity has the function OnMouseDown() which detects when a specific object (IE a key or other item) is clicked, I was wondering how to do this in Leadwerks.
  5. Sorry, I am not that great at getting messages across. I suppose I should give you an idea of what I am trying to do. In my point and click game, two green arrows (represented by cones) are nested within my main camera. Clicking on the arrows changes the rotateC value to 1 and -1 respectively. I want the rotation to be set to multiply 90 by rotateC and would like for it to update constantly and thus want to call the function in UpdateWorld (in order to rotate the camera in 90 degree increments). Perhaps the way I'm going about it is completely out of whack, but I hope you can see what I'm trying to do
  6. I might be wrong but isn't == used for comparisons? I meant to assign 0 to rotateC. I'm concerned more about why Script is considered a nil value
  7. Hi, I'm new to Leadwerks and am attempting to make a point and click game as my first project, however when I use a function I always get the response I also used the example custom function code in the documentation. Here is my code Here is the example code that also returned the same error I would be grateful if anybody could help me figure this out. I am new to LUA and the syntax is very annoying EDIT: I've solve the issue by changing the script, but now I get here is my code now
  • Create New...