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
Unlocking an elevator door
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#1
Unlocking an elevator door

Hello guys i needs some help on unlocking an elevator door
Heres the code i put in

in void onstart:
AddUseItemCallback("", "hollow_needle_1", "elevator_door", "unlock_elevator_door", true);

Below void onstart:
void unlock_elevator_door(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("elevator_door", false, true);
    PlaySoundAtEntity("", "unlock_door", "elevator_door", 0, false);
}
And when i use my hollow needle on the elevator door ingame it says cant use this item this way!

Please help!
Thanks,
TheDavenia

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 07-18-2011, 03:36 PM by TheDavenia.)
07-18-2011, 03:36 PM
Find


Messages In This Thread
Unlocking an elevator door - by TheDavenia - 07-18-2011, 03:36 PM
RE: Unlocking an elevator door - by Kyle - 07-18-2011, 03:49 PM
RE: Unlocking an elevator door - by rojkish - 07-18-2011, 04:13 PM
RE: Unlocking an elevator door - by Kyle - 07-18-2011, 05:08 PM
RE: Unlocking an elevator door - by TheDavenia - 07-18-2011, 05:22 PM
RE: Unlocking an elevator door - by xtron - 07-18-2011, 04:51 PM



Users browsing this thread: 1 Guest(s)