Jump to content

Controlling player with C++


StOneDOes
 Share

Go to solution Solved by Charrua,

Recommended Posts

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.

 

 

Link to comment
Share on other sites

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. 

  • Upvote 1

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...