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 Custom story error that I can't solve!?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#14
RE: Custom story error that I can't solve!?

PHP Code: (Select All)
void UnlockDoor(string &in asEntity, int LeverState)
{
    if(
LeverState == 1) 
    {
        
SetSwingDoorLocked("Open", false, true);
        
GiveSanityBoostSmall();
        
PlaySoundAtEntity("", "unlock_door.ogg", "Open", 0, false);
        
SetLeverStuckState(asEntity, LeverState, bool abEffects);
    }
} 

Here is your problem. Your SetLeverStuckState has bool abEffects as an effect. Bool means that it must be true or false. Change that to this:

PHP Code: (Select All)
void UnlockDoor(string &in asEntity, int LeverState)
{
    if(
LeverState == 1) 
    {
        
SetSwingDoorLocked("Open", false, true);
        
GiveSanityBoostSmall();
        
PlaySoundAtEntity("", "unlock_door.ogg", "Open", 0, false);
        
SetLeverStuckState(asEntity, LeverState, false);
    }
} 

Discord: Romulator#0001
[Image: 3f6f01a904.png]
02-01-2014, 08:48 AM
Find


Messages In This Thread
RE: Custom story error that I can't solve!? - by Romulator - 02-01-2014, 08:48 AM



Users browsing this thread: 1 Guest(s)