Jump to content

3rd person script from workshop - how to use?


karmacomposer
 Share

Recommended Posts

I have no idea how to use the 3rd person camera from the store.  I added a character and a camera.  It seems I need to load the 3rd person lua script to the camera.  Fine.  Did that.  I have no way to point to the turtle character.  If I try to load a render target, it wants a .tex file (a texture).

WTF???

Then, when I test it with just a terrain and a turtle character, the camera and a few lights, I fall through the terrain as does everything else.

How do I set up the terrain so it has physics and I can stand on it - and other models don't fall through to oblivion.

How do I set up the models so they don't fall through the terrain?

Most importantly, how do I choose the turtle as the 3rd person character?

If I attach the 3rd person script to the turtle, I get only blackness when running.  Nothing shows up. I assume that's not the way to do it.

Help please.

Thanks.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

Usually the 3rd person script is attached to your "player". 

Remove your camera from your screen and attach the 3rd person script  to your turtle. 

Set your turtles physics mode to "character controller" and collision type to "character"

Other models should be set as physic mode to "rigid body" and collision type to "prop".

This should fix your problem. 

Link to comment
Share on other sites

Nope.  That did not work for me.

I wish there was a step by step tutorial on how to create a 3rd person game.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

On 6/24/2017 at 7:26 AM, karmacomposer said:

The terrain so it has physics and I can stand on it - and other models don't fall through to oblivion.

 

Terrain created in the editor, has terrain physics by default. 

Do you want things to work out of the box or are you willing to code yourself?

What third person script are you using? Posting a link to the items you are using helps people understanding your problem.

Without seeing the script or even screenshots, we can only guess.

 

Link to comment
Share on other sites

Sorry.  I am using the 3rd person script that comes with Leadwerks in the scripts/player folder.

Not really working for me at all.

FPS works fine.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

That one does work - kind of.  The character is facing forward and the walk animation looks stupid.  How do I turn him around on the y axis 180 degrees, i believe in this function:

function Script:Start()
    if self.entity:GetMass()==0 then
        self.entity:SetMass(10)
    end
    self.entity:SetPhysicsMode(Entity.CharacterPhysics)
    self.camera = Camera:Create()
    self.angle = self.entity:GetRotation().y
    self.cameraangle = self.angle + self.entity:GetCharacterControllerAngle()
end

How do I edit all of the animations (idle, walk, run, etc)?

Thank you.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

I figured out how to slow the character down, but the camera facing the character's front is driving me nuts! I cannot figure out how to turn the 3rd person character or camera around to face away from the character.

Any ideas?

I also need to figure out how to allow the mouse up and down to allow the camera to move up and down like most 3rd person controllers.  This script only limits you to rotation around the character.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

When you select the character, go to the physics tab and there you see character rotation angle (or something like it.) Just set it to 180.

I still have a Lua script somewhere that allows full control of the mouse as well. I will send it to you this weekend. It is a lua version of this C++ tutorial:

 

 

Link to comment
Share on other sites

Thank you so much.  I bought the Pro version but am NOT a c++ coder.  Lua, yes.  c++, no.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

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...