Help with your scripting

Scripted Character Setup

Scripted Character Setup

Postby planetX » 13 Jun 2018, 13:09

Hi there,

I'm working on a character setup and I'm trying to implement a simple climbing action. I want the capsule getting stuck in the wall to simulate the first step in the process, which is the hanging. I've tried some things but the capsule is always affected by physics. Is there any way to just stop the capsule at a certain point?

I've used the "Character_Player_Melee.lua" script as a starting point.

My specs: Windows 10 - Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz - 16 Gb ram DDR4 - NVIDIA GeForce GTX 960M 4 Gb

planetX
Skyline Ensen
 
Posts: 196
Joined: 28 Nov 2016, 18:27
Skill: 3D Modeller
Skill: Level Designer
Skill: Concept artist
Skill: Great creative
Skill: Programmer

Re: Scripted Character Setup

Postby SolarPortal » 13 Jun 2018, 13:29

you can use the set controller.setMoveAdvanced() and controller.setMoveDirection() to overwrite movement controls on a character capsule. This is for spawned controller, for SCC, use the character library()

There is also a controller.moveUp() command.

Then you could also try using the controller.enableGravity() or controller.setGravity() commands too if the previous ones dont do it.
Conceive, Quantify & Do!
Skyline Game Engine - Lead Developer.
Please provide as much information as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 3770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3034
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Scripted Character Setup

Postby planetX » 13 Jun 2018, 14:01

setMoveAdvanced and setMoveDirection work like a charm. :D

Thanks

My specs: Windows 10 - Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz - 16 Gb ram DDR4 - NVIDIA GeForce GTX 960M 4 Gb

planetX
Skyline Ensen
 
Posts: 196
Joined: 28 Nov 2016, 18:27
Skill: 3D Modeller
Skill: Level Designer
Skill: Concept artist
Skill: Great creative
Skill: Programmer


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 0 guests

cron