The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Secret door won't work
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#1
Secret door won't work

Hi
I want to make a secret door like in the "old Archives". But it doesn't work, if i use the lever nothing happens.


.jpg   LevelEditor 2012-06-02 15-16-22-13.jpg (Size: 329.39 KB / Downloads: 138)


My DoorScript:
void OnStart()
{

SetEntityConnectionStateChangeCallback("Lever_1", "Lever");
}


void Lever(string &in asEntity, int alState)
{
if (alState == 1)
{
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_24", false);
SetMoveObjectState("Secret",1.0f);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_25", false);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_26", false);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_27", false);
CreateParticleSystemAtEntity("", "ps_dust_falling.ps", "ScriptArea_28", false);
PlaySoundAtEntity("", "quest_completed.snt", "ScriptArea_7", 0, false);
}
}

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


06-02-2012, 02:19 PM
Find


Messages In This Thread
Secret door won't work - by Shives - 06-02-2012, 02:19 PM
RE: Secret door won't work - by i3670 - 06-02-2012, 02:25 PM
RE: Secret door won't work - by Your Computer - 06-02-2012, 03:14 PM
RE: Secret door won't work - by Shives - 06-02-2012, 07:16 PM
RE: Secret door won't work - by Your Computer - 06-02-2012, 07:28 PM
RE: Secret door won't work - by Putmalk - 06-02-2012, 07:26 PM



Users browsing this thread: 1 Guest(s)