Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Puppet_ChangeState_Hunt
Hypercube Offline
Member

Posts: 124
Threads: 20
Joined: Sep 2015
Reputation: 1
#1
Puppet_ChangeState_Hunt

So basically, I wanted to make the monster automatically chase you. I know how to do it, but something went wrong. I mean, maybe I don't know exactly how to do it (because I don't know that much scripting), but that's not the point. You see, I was using the msElevatorPuppet variable and it worked in my last map (BLACKOUT), but it won't work now in the map I'm working on for some reason. I type in Puppet_ChangeState_Hunt(msElevatorPuppet); but that doesn't work, even though before in the script file I put tString msElevatorPuppet = "(insert monster name here)";

I mean, I might just be dumb because I don't know a lot of scripting like I said earlier, but it worked in BLACKOUT so why won't it work it this mod?
05-07-2016, 01:49 AM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: Puppet_ChangeState_Hunt

So you say something went wrong. What happened exactly?
05-07-2016, 04:14 AM
Find
Hypercube Offline
Member

Posts: 124
Threads: 20
Joined: Sep 2015
Reputation: 1
#3
RE: Puppet_ChangeState_Hunt

(05-07-2016, 04:14 AM)Abion47 Wrote: So you say something went wrong. What happened exactly?
I don't even know myself. I was able to do it fine before in my mod BLACKOUT but not now for some reason. The error message thing I get is "no matching signatures to Puppet_ChangeState_Hunt(tString)" tString being the msElevatorPuppet

I don't know what exactly is going on but it just doesn't work.
05-07-2016, 05:04 AM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#4
RE: Puppet_ChangeState_Hunt

That message means the method doesn't exist to your script. Add
#include "custom_depth/helper_custom_depth_ai_puppet.hps"
to the top of your code.
05-07-2016, 05:14 AM
Find
Hypercube Offline
Member

Posts: 124
Threads: 20
Joined: Sep 2015
Reputation: 1
#5
RE: Puppet_ChangeState_Hunt

(05-07-2016, 05:14 AM)Abion47 Wrote: That message means the method doesn't exist to your script. Add
#include "custom_depth/helper_custom_depth_ai_puppet.hps"
to the top of your code.

Ahh... Wow, I totally forgot about that. Thanks a lot, I was really confused, because I thought I already had that in the script.
05-07-2016, 06:06 AM
Find




Users browsing this thread: 2 Guest(s)