|
Post by nfighter on Sept 30, 2018 22:31:46 GMT
Hey! I just started exploring the Invector Melee controller and not fully understand the basic possibilities. What is the proper and cheapest way to build a switch to free strafe? I mean a strafe locomotion that not oriented to the locked target, but just looked forward with camera direction?
The way I'm thinking about is to create the invisible distant target object, attach it to camera and give it a "lock on" tag, so it's always be a something to lock on in the front. But I feel like I'm inventing a bicycle with a square wheels.
|
|
|
Post by Invector on Oct 1, 2018 11:27:39 GMT
Wait... wut? I'm not following you... do you have an ingame example of what you want?
|
|
|
Post by nfighter on Oct 1, 2018 22:47:14 GMT
Wait... wut? I'm not following you... do you have an ingame example of what you want? Haha, sorry. Let me show you the video Here is the movement I'm building. Character use strafing moves and rotating with camera.
|
|
|
Post by Invector on Oct 2, 2018 11:53:36 GMT
The video shows just a regular strafe movement, isn't? Hmm... Sorry but I'm still not understanding what you're trying to do, the title says without lock-on but your first post says that you want to use it?
|
|
|
Post by nfighter on Oct 2, 2018 12:42:46 GMT
The video shows just a regular strafe movement, isn't? Hmm... Sorry but I'm still not understanding what you're trying to do, the title says without lock-on but your first post says that you want to use it? Let me ask in another way: how to turn on the regular strafe movement? When I create a default character it should be turned on by tab key, right? But it doesn't work for me It works only when there is an enemy in the scene and my character lock-on on this enemy (and strafe around the enemy). But I want just a regular strafe movement, like in the video. I build this strafe movement in a complicated way with side scripts, but I thought it should be the way to just have it by default with native invector?
|
|
|
Post by tharindu on Oct 2, 2018 18:52:01 GMT
Basically I think he's asking if he can turn on strafing using a keyboard input. He's trying to achieve lock on like behavior without actually locking on to an enemy I think.
|
|
|
Post by nfighter on Oct 2, 2018 20:13:28 GMT
Yes. I just want to have a strafing motion. Without enemy lock on.
I build it but in a complex way, but I suppose it should be a simple one.
|
|
|
Post by nfighter on Oct 2, 2018 22:11:13 GMT
ok, I just found that character created with "Basic locomotion>Create Basic Controller" have a strafing motion working out of the box. And "Melee Combat>Create Basic Controller" doesn't. Because of "Lock on" component. So, after deleting Lock-on component from melee controller- I've got a proper, clear strafing. Thanks everyone for listening my ted talk!
|
|
|
Post by tharindu on Oct 3, 2018 5:59:20 GMT
ok, I just found that character created with "Basic locomotion>Create Basic Controller" have a strafing motion working out of the box. And "Melee Combat>Create Basic Controller" doesn't. Because of "Lock on" component. So, after deleting Lock-on component from melee controller- I've got a proper, clear strafing. Thanks everyone for listening my ted talk! But it means you will not be able to lock on to a target. You okay with that?
|
|
|
Post by nfighter on Oct 3, 2018 8:46:34 GMT
But it means you will not be able to lock on to a target. You okay with that? If I need to choose between locking or free strafe – I would prefer strafe without locking. Do I have options to keep both?
|
|
|
Post by tharindu on Oct 3, 2018 9:08:45 GMT
Well melee controller is basic locomotion with combat. if basic locomotion has something enabled, even though it doesn't show up in editor, it can still stay under the hood. Play around with the scripts a bit . I am sure you'll get to keep both.
|
|
dval
New vMember
Posts: 10
|
Post by dval on Mar 18, 2019 13:47:03 GMT
I know this was marked as solved, but for me the answer was commenting out 2 lines in vLockOn.cs. Lines 105 and 106 are basically saying "not locked on, so don't strafe".
With those lines commented out, you can strafe or not, while you're locked on or not.
|
|
|
Post by link2589 on Mar 30, 2020 17:23:47 GMT
hello excuse me are you sure this is still the lines 105 and 106 ???
|
|