Jump to content

Recommended Posts

Posted

Is there any way with the lua api / indie edition to dynamically create walls and all other bsp stuff at run time? Im trying to work on a different level editor loader...

 

Thanks in advance.

Posted

You need to create the rendering model :

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/model/modelcylinder-r350

Then create the collision Shape :

http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/shape/shapecylinder-r519

And set it's collision.

 

You can find lot of examples :

Just look at this Lua example it create colliding primitives at runtime and set it's collision type :

http://www.leadwerks.com/werkspace/page/tutorials/_/introduction-to-raycasting-r13

Stop toying and make games

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.

×
×
  • Create New...