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
Script Help Script Error
Amnesiaplayer Offline
Senior Member

Posts: 539
Threads: 105
Joined: Jun 2014
Reputation: 0
#2
RE: Script Error

(07-01-2015, 06:50 PM)MaksoPL Wrote: Hi, I've maked script to show message when I click on the object. I clicked on object in game, and message don't showed up.
.hps script:

...
void CarScript(string &in asEntity)
{
if(GetLocalVarInt("Switch") == 0)
{
SetEntityCallbackFunc("CarScript","Info");
}
}

void Info(string &in asItem, string &in asEntity)
{
SetMessage("Message","CarScript",0);
}


What i must do?


Go to your level editor, and Click on the object. Then go to the entity tab, and type in the " PlayerInteractCallBack" the name, lik you used. Info

so type in Info in the tab, and then :

void Info(string &in asEntity)
{
SetMessage("Message", "CarScript", 0);
}

Let me know if it worked.
Btw, if you want this for the static objects to, Then just create an area and do the same stuff.
07-01-2015, 08:42 PM
Find


Messages In This Thread
Script Error - by MaksoPL - 07-01-2015, 06:50 PM
RE: Script Error - by Amnesiaplayer - 07-01-2015, 08:42 PM
RE: Script Error - by FlawlessHappiness - 07-01-2015, 10:04 PM
RE: Script Error - by Amnesiaplayer - 07-01-2015, 10:11 PM
RE: Script Error - by FlawlessHappiness - 07-02-2015, 01:24 AM
RE: Script Error - by Romulator - 07-02-2015, 02:39 AM
RE: Script Error - by FlawlessHappiness - 07-02-2015, 11:45 AM
RE: Script Error - by Radical Batz - 07-02-2015, 12:11 PM



Users browsing this thread: 1 Guest(s)