Issues with a NPC, dying and pathfinding:
Awesome, that was it! I'm such a newbie in scripting, I hope I can think of these things myself one day :P
Anyway, now it runs my unponPlayerDeath ActionListAsset once I die, which stops the grey cube from f…
Issues with a NPC, dying and pathfinding:
I tried the namespace change in the script already. Doesn't work. It gives me three errors:
Assets/Area_52d/Scripts/tt_DoStuffBeforeDying.cs(37,48): error CS0103: The name `uponPlayerDeath' does not exi…
So I got a custom script from someone at the UFPS forums who helped me out.
using UnityEngine;
using System.Collections;
public class tt_DoStuffBeforeDying : MonoBehaviour
{
private vp_FPPlayerEventHandler a_Player = null;
void Awake ()
{
a_Pla…
Issues with a NPC, dying and pathfinding:
I've posted a question about custom scripts to the UFPS forums. As soon as I know how to run the custom script, I'll let you know if it works.
Issues when creating a cutscene
Same thing happens, even when…
This also happened to me when I created a cutscene that runs an ActionList asset file with parameters. When I change a parameter in one cutscene, it also changes it in a copy of that cutscene.
I was already wondering why this happens, since the wh…
Return of the camera jitter!
Interesting stuff... When a cutscene runs the action "Engine: End Game" with the command set to Reset Game or Reset Scene, the scene will play again but the camera jitter returns, even if the StateHandler's sc…
Issues with a NPC, dying and pathfinding:
That sure sounds like a solution for the main issue, but I'm not sure how to trigger a custom script upon death. I tried to make a simple C# script as well as to edit one of the UFPS base scripts to get thi…
Nice, I didn't know about the marquee selecting in the node editor. That really helps :)
This is how I got the variable issue:
- I create a local variable from the Game Editor under the Variables tab.
- In a random interaction in my scene, I add a …
Yes, that actually solved the problem! Maybe you can set this function to be a LateUpdate in future releases of AC, since the jitter really was annoying.
Thanks Chris! :)
If helpful, here's a step-by-step breakthrough of what I did to get the camera to jitter:
- Using Unity v4.5.2f1 (free version) I set up a new project and then import both the Adventure Creator (v1.3.8b) and UFPS (v1.4.7c) packages.
- I get the fol…