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
One question?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#11
RE: One question?

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "LightsOut", true, 1); This red text is your callback
}
void LightsOut(string &in asParent, string &in asChild, int alState) It is marked red here too.
{
SetLampLit("candlestick_floor_1", false, true);
AddTimer("", 0, "Out2"); This blue text is the callback of the timer. But the timer is 0 seconds, and there is no other "Out2" in your script, so delete that line
CreateParticleSystemAtEntity("ParticleSystem_1", "ps_dust_whirl.ps", "LightsOut", false); This green text is where the particle is when it starts. You make a new ScriptArea and paste the name in here, (Where the particle should be made)

PlaySoundAtEntity("", "general_wind_whirl.snt", "LightsOut", 0, false); This pink text is where the sound is being played. For beginners, you should use "Player".
}

Trying is the first step to success.
(This post was last modified: 07-24-2012, 11:54 PM by FlawlessHappiness.)
07-24-2012, 11:54 PM
Find




Users browsing this thread: 1 Guest(s)