Search found 157 matches

Re: How to add a shadow to spawned object via C# script?

Currently this is not yet exposed in the CryEngine.Core namespace. You can however try this with the CryEngine.Common namespace. The CryEngine.Common namespace however is generated by SWIG which means that you have to make sure to properly dispose and manage the objects you use from that namespace. ...

Re: How does Cryengine works?

Since I have quite some experience in both engines I'll add a bit of my experience from a programming perspective. First of all, in CRYENGINE 5.4 you create a separate C# solution, instead of the editor doing this for you. This is done by right-clicking on the game.cryproject file in your project's ...

Re: Action Handler C# Help

Normal buttons and keys send Pressed , Down and Released events. But Changed is only sent by analog-events, such as the mouse or analog-sticks on a controller. So in your case you probably want to listen to the Pressed and Released events instead. Example from the Third Person Template: if(state == ...

Re: Converting FPS Template to have uniform movement speed

An easier way to do this is to normalize the velocity. This will look like this: void CPlayerComponent::UpdateMovementRequest(const float frametime) const { Vec3 velocity = ZERO; const float moveSpeed = (g_CVars.m_playerMoveSpeed > 0.f) ? g_CVars.m_playerMoveSpeed : 20.f; if (m_inputFlags & static_c...

Re: [5.4] IDE Support?

I installed this extension but I get this error when I try to debug my CS project: Currently the Mono Debugger can only attach to the engine if Mono is started suspended. This functionality has only been added recently to the engine, so it's currently not possible with CRYENGINE 5.4. Once the exten...

Re: [5.4] IDE Support?

We are currently working on an extension for Visual Studio that would add debugging support to C# projects. You can take a sneak peak at the extension here https://github.com/CRYTEK/CRYENGINE/tree/main/Code/Tools/VisualStudioExtensions/CryEngineMonoDebugger/source . It is currently being developed f...

Re: Please Help Me

This most likely happens when you try to package a project that runs on a version before CRYENGINE 5.4. Packaging builds is only supported since the release of CRYENGINE 5.4. You can however package your build manually by following the instructions in this post by Cry-Flare. The topic you're most li...

Re: How to apply changes which was done in C++ code of a simple project?

Did you build your code so it replaces the default game.dll? To make changes to the code you have to follow these steps: Go to the folder where you've saved your project. Right-click the Game.cryproject file and select "Generate Solution". Select the version of Visual Studio that you want to develop...

Go to advanced search