Jump to content

Lua inside editor?


Andy Gilbert
 Share

Recommended Posts

Hi could somone just start me off here as im lost.

 

Basically upto now i have been using the script editor outside the leadwerks editor using a single script, loading a scene, objects ETC.

 

But i want to be able to do the same in the leadwerks editor, it will be alot easier and faster, but im a bit lost how to do it.

 

Dor instance, i have my scene, and what i want is when i press the game button the camera "goto a postion".

 

And the one model i have in the scene to be able to e moved using the arrow keys.

 

That would get me start on how i can then go forward with it.

 

Thanks

Andy

The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do.

 

Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d

Link to comment
Share on other sites

Hi andy,

 

This script is a stripped version of the FPScontroller script. It allows you to walk, jump an look around. If you would have a switch (like the ones from tunnel.sbx) you can use the 'e' key to turn it on and off. Place it in the SDK/scripts/game folder. Via the options menu, adjust the game path to this script.

fpscontroller - simple.zip

 

You can also download this playerstart. It doesn't work perfect, but the player does start at the position. I will try to make a better one that actually points the player in the right direction.

http://leadwerks.com/werkspace/index.php?/files/file/108-playerstart/

Link to comment
Share on other sites

Thanks Aggror ill have a look at them.

 

The confusing thing scripts for models? If i want to for instance apply a force to a model, can i have its own scripts for doing that? Or do i have to somhow do that from the main game script?

 

Thanks

Andy

The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do.

 

Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...