Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finishing it off [SOLVED] THE STORY'S OUT!!!!!
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#6
RE: Finishing it off

(05-14-2011, 07:24 PM)Acies Wrote: 4. A startplayerlookat defines:
a. the entity or area looked at
b. the acceleration of the looking movement
c. the maximum speed of the looking movement

The player will continously look at the object until a StopPlayerLookat is called - which could be set off by a timer.

2. That is for a lever combo tutorial.
If you only want to pull 1 lever it is quite easy.
Then you simply use "Alstate" in the execution script.

If this is what you are looking for I can give you example scripts Smile

GL

Can you give me an example of a look at script including timer? and can you explain what the numbers and things in the timer do? Smile
(05-14-2011, 06:50 PM)Kyle Wrote: 1. Go to the entity's properties, and check the box that says "Static Physics".
2. http://www.frictionalgames.com/forum/thr...67004.html? A little about levers.
3. SetEntityActive("ScriptArea_1", true);

5. SetEnemyDisableTriggers(string& asName, bool abX);

I tried using your script for the levers. I don't get an error, but it's just that the levers don't get stuck, and they don't activate the event I told them to activate... Sad
Here is the code for the second lever
void L2(string &in asEntity, int alState)
{
    if (alState == 1)
    {
        if(GetLocalVarInt("Lev") == 2)
        {
            SetLocalVarInt("Lev", 3);
            SetEntityInteractionDisabled("lever_2", true);
            SetLeverStuckState("lever_2", 1, true);
            SetSwingDoorLocked("KeyStudyDoor", true, false);
            return;
        }
        else if (GetLocalVarInt("Lev") != 2)
        {
            SetLocalVarInt("Lev", 1);
            for (int i = 1; i > 0 && i < 5; i++)
            {
                SetEntityInteractionDisabled("lever_"+i, false);
            }
            for (int x = 1; x > 0 && x < 5; x++)
            {
                SetLeverInteractionDisablesStuck("lever_"+x, true);
            }
            return;
        }
    }
}

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 05-14-2011, 09:18 PM by Karai16.)
05-14-2011, 08:53 PM
Find


Messages In This Thread
RE: Finishing it off - by Kyle - 05-14-2011, 06:50 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 07:18 PM
RE: Finishing it off - by Kyle - 05-14-2011, 07:22 PM
RE: Finishing it off - by Acies - 05-14-2011, 07:24 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 08:53 PM
RE: Finishing it off - by Kyle - 05-14-2011, 09:27 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 09:46 PM
RE: Finishing it off - by Roenlond - 05-14-2011, 09:59 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 10:25 PM



Users browsing this thread: 1 Guest(s)