Frictional Games Forum (read-only)

Full Version: Script help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The code:
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]
AddEntityCallback doesn't exist if I am correct. Try replacing it with AddEntityInteractCallback.
PlayMusic amb_soft_mood
You're making a porn cs ?



Just kidding, Daortic is probably right.
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, 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)
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.
Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?
(12-13-2013, 12:02 AM)daortir Wrote: [ -> ]Also, void monsterspawn should say void monsterspawn(string &in asEntity).
Try that maybe ?

Same error
Try removing the 1 in your callback. Make it


AddEntityInteractCallback("Player", "livingkey", "monsterspawn", true);
If it works you owe me a cookie.
(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]
Pages: 1 2