Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering CryENGINE
  • Table Of Contents Toc
Mastering CryENGINE

Mastering CryENGINE

By : Michelle Martin
4.8 (9)
close
close
Mastering CryENGINE

Mastering CryENGINE

4.8 (9)
By: Michelle Martin

Overview of this book

Table of Contents (17 chapters)
close
close
Mastering CryENGINE
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1
Index

Lua-based entities


Most entities you can place in CryENGINE Sandbox are based on the Lua script. This means these entities have a script proxy attached to them. This script proxy provides you access to a Lua table that contains the entity information and various functions. These Lua tables let you add new properties or functions to an entity.

Creating a new Lua script entity is easy and can be done within a few minutes without recompiling any code.

Creating a new Lua-based entity

Only a few steps are necessary to create a new Lua script entity. Firstly, an entity definition file, a so-called .ent file, has to be created. This file registers the Lua entity with the engine and points to a script that will be used. The entity definition files are placed in the ../Game/Entities/.. folder.

Let's create a new entity by first creating an .ent file with the name Testy.ent and place it in the ../Game/Entities/..folder. For our example, we will just call our entity Testy, but you can change the entity...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering CryENGINE
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon