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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lever's Support
christoff Offline
Junior Member

Posts: 1
Threads: 1
Joined: Jan 2011
Reputation: 0
#1
Lever's Support

Ok im new to HPL2 as a games engine and im finding it confusing to add a lever into the game and to get the scripts to work.

I have a lever on the map named "lever00"
and the locked door is "celldoor02"

the current script i have is

void StateChangeLever(string &in asEntity, int alState)
{
if(alState == 1){
SetLeverStuckState("lever00", 1, true);
SetSwingDoorLocked("celldoor02", false, true);
PlaySoundAtEntity("", "Unlock_Door", "celldoor02", 1, false);
}

But when i play the map when i move the lever down the locked door wont open.

Thanks, also anyone got a tutorial on how to make interactions between other items such as wheels and pulley systems? these would be helpful and much appreciated thanks.
(This post was last modified: 01-27-2011, 05:10 PM by christoff.)
01-27-2011, 05:10 PM
Find


Messages In This Thread
Lever's Support - by christoff - 01-27-2011, 05:10 PM
RE: Lever's Support - by Frontcannon - 01-27-2011, 10:15 PM
RE: Lever's Support - by Pandemoneus - 01-27-2011, 10:33 PM



Users browsing this thread: 1 Guest(s)