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
problems with scripting
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#20
RE: problems with scripting

Thanks Saffire192. Big Grin
Now it works.

I will report, when I had other problems with my full conversion. But meanwhile you could help me with another custom story, which I had stop, because my weak knowledge of scripting. Undecided

Quote: I had already problem by making buttons and levers.

So this is my concept.

The player used a lever ( I had also tried with a button, with no succes)
which makes the following things:
- He unlock a door
- He activate some enemys
- He plays a sound

But nothing works! Confused Not even with a button!
Maybe my script is total fail again... Big Grin

This is by onStart

Quote:SetEntityConnectionStateChangeCallback("LeverExit01", "OpentheExit");

And this is the rest:

Quote:void OpentheExit(string &in asConnectionName, string &in asMainEntity, string &in asConnectEntity, int alState)
{
if (alState == 1)
{
SetLeverStuckState(asMainEntity, -1, true);
SetSwingDoorLocked("Ceiling", false, true);
SetEntityActive("Exit_Guard01" , true);
PlaySoundAtEntity("LeverExit01", "levelexitopen.ogg", "Player", 0.5f, false);
AddEnemyPatrolNode("Exit_Guard01", "Path9", 0.1f, "true"); // There are more pathnodes, but then my post would explode... xD
}
}
So what is wrong?
I have also a small question. It is possible to make enemys never dissapear and always followed their pathnodes, like in Justine? How did I do this?





08-13-2011, 08:14 AM
Find


Messages In This Thread
problems with scripting - by Brute - 08-11-2011, 11:51 AM
RE: problems with scripting - by Your Computer - 08-11-2011, 03:07 PM
RE: problems with scripting - by Brute - 08-11-2011, 04:48 PM
RE: problems with scripting - by Tanshaydar - 08-11-2011, 06:11 PM
RE: problems with scripting - by Brute - 08-11-2011, 06:41 PM
RE: problems with scripting - by Tanshaydar - 08-11-2011, 06:48 PM
RE: problems with scripting - by plutomaniac - 08-11-2011, 10:23 PM
RE: problems with scripting - by Brute - 08-12-2011, 08:20 AM
RE: problems with scripting - by plutomaniac - 08-12-2011, 09:35 AM
RE: problems with scripting - by Brute - 08-12-2011, 09:53 AM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 10:02 AM
RE: problems with scripting - by Brute - 08-12-2011, 10:58 AM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 12:27 PM
RE: problems with scripting - by Brute - 08-12-2011, 01:13 PM
RE: problems with scripting - by Tanshaydar - 08-12-2011, 02:01 PM
RE: problems with scripting - by Tesseract - 08-12-2011, 02:06 PM
RE: problems with scripting - by Brute - 08-12-2011, 03:01 PM
RE: problems with scripting - by Tesseract - 08-13-2011, 01:50 AM
RE: problems with scripting - by Endlvl - 08-12-2011, 03:25 PM
RE: problems with scripting - by Brute - 08-13-2011, 08:14 AM
RE: problems with scripting - by Tesseract - 08-13-2011, 12:27 PM
RE: problems with scripting - by Brute - 08-13-2011, 01:19 PM
RE: problems with scripting - by Brute - 08-16-2011, 05:15 PM
RE: problems with scripting - by Brute - 08-19-2011, 06:23 PM



Users browsing this thread: 1 Guest(s)