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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple problems
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#1
Rainbow  Multiple problems

Hello people

I have 2 problems but I am sure you can help:

Problem 1:

I want text to appear when the player looks at something, but nothing happens

    SetEntityPlayerLookAtCallback("1", "lookat1", false);
    SetEntityPlayerLookAtCallback("2", "lookat2", false);
    SetEntityPlayerLookAtCallback("3", "lookat3", false);
    SetEntityPlayerLookAtCallback("4", "lookat4", false);

void lookat1(string &in entity, string &in type)
{
    SetMessage("Message", "look1", 2);
}

void lookat2(string &in entity, string &in type)
{
    SetMessage("Message", "look2", 2);
}

void lookat3(string &in entity, string &in type)
{
    SetMessage("Message", "look3", 2);
}

void lookat4(string &in entity, string &in type)
{
    SetMessage("Message", "look4", 2);
}
    <Entry Name="look1">Lever 1</Entry>
    <Entry Name="look2">Lever 2</Entry>
    <Entry Name="look3">Lever 3</Entry>
    <Entry Name="look4">Lever 4</Entry>


And problem 2 is:

How would I get a variable to increase as they pull the levers in the right order but if they pull the wrong one the variable goes back to 0?

Thank-you Big GrinCoolBig GrinCool

...
05-18-2011, 04:42 PM
Find


Messages In This Thread
Multiple problems - by X4anco - 05-18-2011, 04:42 PM
RE: Multiple problems - by Acies - 05-18-2011, 05:29 PM
RE: Multiple problems - by X4anco - 05-18-2011, 05:32 PM
RE: Multiple problems - by Acies - 05-18-2011, 05:57 PM
RE: Multiple problems - by X4anco - 05-18-2011, 06:03 PM
RE: Multiple problems - by Acies - 05-18-2011, 06:08 PM
RE: Multiple problems - by X4anco - 05-18-2011, 06:15 PM
RE: Multiple problems - by Acies - 05-18-2011, 06:18 PM
RE: Multiple problems - by X4anco - 05-18-2011, 06:28 PM
RE: Multiple problems - by Acies - 05-18-2011, 08:21 PM
RE: Multiple problems - by X4anco - 05-18-2011, 09:02 PM



Users browsing this thread: 2 Guest(s)