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
Tesseract Offline
Senior Member

Posts: 498
Threads: 7
Joined: Mar 2011
Reputation: 18
#21
RE: problems with scripting

Im not very good with levers im still trying to get my head around it try playing around with.


void StateChange(string &in EntityName, 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
}
Oh and dont forget the callback:

SetEntityConnectionStateChangeCallback("YourLeverName", "StateChange");
(This post was last modified: 08-13-2011, 12:39 PM by Tesseract.)
08-13-2011, 12:27 PM
Find
Brute Offline
Member

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

Sadly this line exist in my script... Confused
And it doesn't work. I had never thought, that is it so hard to make levers and buttons... I had tried everything. But I am sure, there is just a very, very small mistake... Rolleyes





08-13-2011, 01:19 PM
Find
Brute Offline
Member

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

So the problem still exist. Would be nice, when you told me how to make a lever from beginning.
This means, what scripts must I wrote and what must I adjust in the editor. Rolleyes





(This post was last modified: 08-19-2011, 06:23 PM by Brute.)
08-16-2011, 05:15 PM
Find
Brute Offline
Member

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

So guys,
I think, I should give you some secret infos Big Grin

I am making a custom story, that could interest you, maybe I will release a demo next weekend!

But YOU must help me with scripting. Just show me how to make levers, and maybe other stuff, I should asked you. Tongue

I will promise you will don't dissapointed!





08-19-2011, 06:23 PM
Find




Users browsing this thread: 1 Guest(s)