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
Script help
Steelen Offline
Junior Member

Posts: 4
Threads: 2
Joined: Dec 2013
Reputation: 0
#1
Script help

The code:
void OnEnter()
{
AddEntityCallback("Player", "livingkey", "monsterspawn", true, 1);
PlayMusic("amb_soft_mood", true, 1, 0.1f, 0, true);
AutoSave();
}

void monsterspawn()
{
SetEntityActive("tehmonster",true);
AddEnemyPatrolNode("tehmonster","PathnodeArea8",2,"");
AddEnemyPatrolNode("tehmonster","PathnodeArea11",6,"");
AutoSave;
}

The error I get:
[Image: 1vGV8FM.png]
12-12-2013, 10:15 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#2
RE: Script help

AddEntityCallback doesn't exist if I am correct. Try replacing it with AddEntityInteractCallback.

12-12-2013, 10:21 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#3
RE: Script help

PlayMusic amb_soft_mood
You're making a porn cs ?



Just kidding, Daortic is probably right.

12-12-2013, 10:41 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#4
RE: Script help

I think a porn parody CS could be pretty hilarious : p. I guess the Dark Room Pedobear sequence was kinda close to that though xD

By the way, it's Daortir ;_;
No one can spell this right, I'll think I'll just rename to "D". And when you guys will piss me off I'd just leave the forums, AND EVERYONE WILL BE SAD.
And I'd be like, now you guys want the "D".
Sorry about that.

So, did you try to change what I suggested ?

12-12-2013, 11:26 PM
Find
Steelen Offline
Junior Member

Posts: 4
Threads: 2
Joined: Dec 2013
Reputation: 0
#5
RE: Script help

(12-12-2013, 10:21 PM)daortir Wrote: AddEntityCallback doesn't exist if I am correct. Try replacing it with AddEntityInteractCallback.

I got the same error but instead of saying the AddEntityCallback, it was AddEntityInteractCallback
[Image: FF57Xpy.png]
(sorry for the white stuff over it, no sex jokes please)
12-12-2013, 11:44 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#6
RE: Script help

Yeap, let's soften the mood. Sorry.
You should really use a copy of another working mod.
You're getting a weird path to your files in that error.

12-12-2013, 11:56 PM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#7
RE: Script help

Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?

12-13-2013, 12:02 AM
Find
Steelen Offline
Junior Member

Posts: 4
Threads: 2
Joined: Dec 2013
Reputation: 0
#8
RE: Script help

(12-13-2013, 12:02 AM)daortir Wrote: Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?

Same error
12-13-2013, 12:06 AM
Find
daortir Offline
Senior Member

Posts: 422
Threads: 9
Joined: Sep 2013
Reputation: 18
#9
RE: Script help

Try removing the 1 in your callback. Make it


AddEntityInteractCallback("Player", "livingkey", "monsterspawn", true);
If it works you owe me a cookie.

(This post was last modified: 12-13-2013, 12:13 AM by daortir.)
12-13-2013, 12:12 AM
Find
Steelen Offline
Junior Member

Posts: 4
Threads: 2
Joined: Dec 2013
Reputation: 0
#10
RE: Script help

(12-13-2013, 12:12 AM)daortir Wrote: Try removing the 1 in your callback. Make it


AddEntityInteractCallback("Player", "livingkey", "monsterspawn", true);
If it works you owe me a cookie.

Nope
[Image: 2Dy1iRB.png]
12-13-2013, 08:48 AM
Find




Users browsing this thread: 1 Guest(s)