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
Problems
jmayo Offline
Junior Member

Posts: 16
Threads: 6
Joined: Sep 2011
Reputation: 0
#1
Problems

I Will Be Posting Script Problems here From now On
Here is My First One:
Script

////////////////////////////
// Run when entering map
void OnEnter()
////////////////////////////+
// Run first time starting map
void OnStart()

{
AddEntityCollideCallback("Player", "shadow", "shadowappear", true, 1);
}

void shadowappear(string &in asParent, string &in asChild, int alState);
{
PlaySoundAtEntity("guardian_activated1", "guardian_activated", "player", 5, true);
void SetEntityActive("slime_pile_2", true);
void SetEntityActive("slime_pile_large_1", true);
void SetEntityActive("slime_anim_wall_2", true);
void SetEntityActive("slime_egg_1, true");
void SetEntityActive("slime_anim_ceiling_1", true);
}


Error


[Image: helplz.png]
10-15-2011, 12:23 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Problems

I see multiple errors.

void OnEnter()
{
}
void OnStart()
{
     AddEntityCollideCallback("Player", "shadow", "shadowappear", true, 1);
}
void shadowappear(string &in asParent, string &in asChild, int alState)
{
     PlaySoundAtEntity("guardian_activated1", "guardian_activated.snt", "Player", 5, true);
     SetEntityActive("slime_pile_2", true);
     SetEntityActive("slime_pile_large_1", true);
     SetEntityActive("slime_anim_wall_2", true);
     SetEntityActive("slime_egg_1", true);
     SetEntityActive("slime_anim_ceiling_1", true);
}

You can try this. You can also notice that I removed the "void" at the beginning for some of the command functions. You don't need those.

I hope it works. Smile

(This post was last modified: 10-15-2011, 12:30 AM by Kyle.)
10-15-2011, 12:26 AM
Find
jmayo Offline
Junior Member

Posts: 16
Threads: 6
Joined: Sep 2011
Reputation: 0
#3
RE: Problems

Didnt Work
10-15-2011, 12:35 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Problems

Try rearranging it like this:

void OnStart()
{
     AddEntityCollideCallback("Player", "shadow", "shadowappear", true, 1);
}
void shadowappear(string &in asParent, string &in asChild, int alState)
{
     PlaySoundAtEntity("guardian_activated1", "guardian_activated.snt", "Player", 5, true);
     SetEntityActive("slime_pile_2", true);
     SetEntityActive("slime_pile_large_1", true);
     SetEntityActive("slime_anim_wall_2", true);
     SetEntityActive("slime_egg_1", true);
     SetEntityActive("slime_anim_ceiling_1", true);
}
void OnEnter()
{
}

10-15-2011, 01:03 AM
Find
schmupper Offline
Junior Member

Posts: 23
Threads: 1
Joined: Aug 2011
Reputation: 2
#5
RE: Problems

(10-15-2011, 12:35 AM)jmayo Wrote: Didnt Work
Same error? Post the log.


''Oh. My. God. He's DEAD. Quickly, if he hasnt started to smell, give him the kiss of life!''

Clarence - The monkey hater
10-15-2011, 06:27 PM
Find




Users browsing this thread: 1 Guest(s)