|
Post by Chronicman on Dec 7, 2016 22:21:05 GMT
I need to lock the movement on the player character for starting scene/menu. It keeps unlocking its self in the code some where's that I cant seem to find. Do I have to fake something like the inventory isOpen ? I've used the find in all character scripts but still nothing. Any ideas ?
|
|
|
Post by uberwiggett on Dec 7, 2016 23:23:27 GMT
When I was fiddling with another asset, it has the ability to switch off the com0onent (character controller). The problem with that though is that it wouldn't always stop the character moving, just stopped me being able to input commands to direct it. I ended up running through the npc i stopped to talk to.
But that was old melee template, new one might be different? Maybe test by disabling the movement component
|
|
|
Post by Chronicman on Dec 7, 2016 23:38:06 GMT
I will try that however there is a lockMovment bool on the CC and thus should lock out input, Turning off the CC might result in errors but I'll try it. Thanks for your advice uberwigget!
|
|
|
Post by uberwiggett on Dec 8, 2016 0:39:39 GMT
Yeah come to think of it, when you open a chest it prevents you from moving around (although sometimes you can rotate). So might look into how they handle that. Or alternatively throw in an idle animation state and loop that whilst in whatever pause function it's for.
|
|
|
Post by Chronicman on Dec 8, 2016 1:04:26 GMT
Well I'm adding a starting scene for ES2InvectorBride, this way I can load players location easily. If there is a save slot it will spawn the character load his gear then send him the last spot he saved. When the player spawn hes controllable and can run off the platform. I do need to freeze him for quite some time until the player is ready to play. I have looked into it but I just cant find the stupid thing that holding it false. =( I've searched all the character scripts using the find tool...
|
|
|
Post by Invector on Dec 8, 2016 15:41:23 GMT
Take a look into the Inventory Events, there is a bool that locks the input when the inventory is open and release after you close
|
|
|
Post by Chronicman on Dec 8, 2016 17:50:35 GMT
Where can I find the Inventory event script I've been looking for it for quite some time. Are they the event right in vInventory.cs or are they hidden in some other script. Thanks Teles!
|
|
|
Post by Chronicman on Dec 16, 2016 20:22:13 GMT
If any one is looking to lock movement this is the bools onOpenCloseInventory.Invoke(true); and onOpenCloseInventory.Invoke(false);
|
|