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
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Script Error

(07-01-2015, 10:11 PM)Amnesiaplayer Wrote:
(07-01-2015, 10:04 PM)FlawlessHappiness Wrote: Looking away from your script, and just at what you said I'd presume what you want is

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

Then put this in void OnStart()

SetEntityPlayerInteractCallback(NameOfEntity, "Info", false);

You don't need the setentityplayerinteractcallback, this is possible in the entity tab itself, for the entities. right?

It's arguably better to not use those. It's easier to look over your code when it is bound within the scope of just the hps file. I for one find it ridiculously tedious going back and forth between my Level Editor and Notepad++, but it could of course just be a matter of preference.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
07-02-2015, 02:39 AM
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)