Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering CryENGINE

You're reading from   Mastering CryENGINE Raise your CryENGINE capabilities even higher with this superb guide. It will take you into a world of advanced features and amazing possibilities, teaching best practices and Lua scripting for sophisticated gameplay along the way.

Arrow left icon
Product type Paperback
Published in Apr 2014
Publisher
ISBN-13 9781783550258
Length 278 pages
Edition Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Michelle Martin Michelle Martin
Author Profile Icon Michelle Martin
Michelle Martin
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Mastering CryENGINE
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Setting Up the Perfect Pipeline FREE CHAPTER 2. Using the CryENGINE Input System – Keyboard, Mouse, and Game Controller 3. Building Complex Flow Graph Logic 4. Morphs and Bones – Creating a Facial Setup for Your Character 5. Mastering Sandbox 6. Utilizing Lua Script in CryENGINE 7. Animating Characters 8. Mastering the Smart Objects System 9. Eye Candy – Particles, Lens Flares, and More 10. Shipping the Build 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...

lock icon The rest of the chapter is locked
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
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime
Modal Close icon
Modal Close icon