StOneDOes Posted July 23, 2017 Share Posted July 23, 2017 Hi guys, Just wondering if it's possible to control an FPS player who has been placed with the level editor, with C++. I'd like to change things such as the player speed, footstep sounds, camera position (3rd person), etc. All things that I expect to be simple in practise, if only I could access the player entity. Is this possible or am I better off re-writing my own player class? EDIT: Also, while I'm here, since I only know a little about lua scripting, I have a couple questions regarding it. What is the script compiled into? What is its speed comparison to C++? Thank you. Quote Link to comment Share on other sites More sharing options...
cassius Posted July 23, 2017 Share Posted July 23, 2017 In c++ its better to create player in code from the start rather than place it in the editor since it only takes a few lines of code. c++ has a speed advantage over lua , but lua script is fast enough. 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Solution Charrua Posted July 23, 2017 Solution Share Posted July 23, 2017 Hi Yes, you can access any entity created on a map looping on the world entities collection see: Juan 1 Quote Paren el mundo!, me quiero bajar. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.