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

Using script binds


The CryENGINE Lua script implementation provides many very useful script binds. A script bind is basically a C++ engine function that has been exposed to Lua. This way, you can have access to pretty much any CryENGINE functionality in your Lua scripts. Many script binds are already available, for example, to start sounds, animations, or to send commands to the AI system. You can also easily expose more functionalities by adding your own script binds. Exposing and using script bind functions is rather easy and straightforward.

Calling script binds

Using a script bind is quite easy. Simply call the script bind as you would call any other Lua function. For example, the following code is a system script bind function that simply shuts down the engine:

System.Quit()

Apart from the function name, you will need to know the global namespace for the script bind you want to call. In the aforementioned example, it is System. The name of the namespace is defined by the C++ code that defines...

Visually different images
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