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
new to scripting thing
eRoTic Offline
Junior Member

Posts: 20
Threads: 7
Joined: Apr 2011
Reputation: 0
#1
new to scripting thing

ya i kno kinda how to do it and stuffs but O.o if i have a script
Em...
Like BedRoom.hps
then i have the func so the key opens the door and then removes
but how do i add more funcz in the scrpit? like if i want a lever to work:o?
i know the script like thing or whatever but like do you have to put like / between them or somthing? O.o / was just an example

somthing like err..
i use this func o.o
void OnStart()
{
    AddUseItemCallback("", "R01_Key1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("mansion_1", false, true);
    PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
    RemoveItem("R01_Key1");
}
then wanna add this func
void OnLeverStateChange(string &in EntityName, int alState)
{
    AddDebugMessage(EntityName + "'s current state: " + alState, false);

    if (alState == -1)
    {
    }
^Dont care if this func is wrong i just wanna know if i need to put somthing in the middle or just let them be like that
05-03-2011, 04:38 PM
Find


Messages In This Thread
new to scripting thing - by eRoTic - 05-03-2011, 04:38 PM
RE: new to scripting thing - by Roenlond - 05-03-2011, 04:54 PM



Users browsing this thread: 1 Guest(s)