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 engine callbacks


The Lua entities are notified of system and entity events through the engine callback functions. These are optional functions within your Lua entity that will be called automatically. An example of this is the OnUsed() function, which is called when the player tries to use your entity.

There are a lot of Lua script callbacks defined in CryENGINE that allow you to work more efficiently with your scripts. We have used some of the basic engine callbacks, such as the following, in our example script:

  • OnReset

  • OnPropertyChange

  • OnInit

These three callbacks, for example, are used in almost every Lua entity and make your life a lot easier. OnReset, for example, is called automatically every time the script is reloaded, while OnPropertyChange is called whenever you change one of the entity's properties in Sandbox. The OnInit callback is triggered when the actual game is started or you jump into game mode in Sandbox. Utilizing these callbacks makes it very easy to set up and...

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 R$50/month. Cancel anytime
Modal Close icon
Modal Close icon