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
Looking at my picture h???
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#10
RE: Looking at my picture h???

(04-29-2012, 11:51 PM)VisualTech48 Wrote:
(04-29-2012, 11:35 PM)Cranky Old Man Wrote: Typo at this line too:
SetEntityActive("servant_brute_2, true);

(You should be able to spot it.)
well im not getting the error anymore but the script doesn't work...THIS is my script

void OnStart()
{
SetEntityPlayerLookAtCallback("Arm", "look", false);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("armchair_11", "ScriptArea_1", "glass", true, 1);
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
AddUseItemCallback("", "doorkey_1", "maindoor_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("doorkey_1", "Spawn_Monster", true);
AddEntityCollideCallback("Player", "PlayerCollide_2", "MonsterFunction1", true, 1);
AddEntityCollideCallback("Player", "Message_2", "Message2", true, 1);

}
void look(string& asName, string& asCallback, bool abRemoveWhenLookedAt)
{
SetEntityActive("wowpic", true);
GiveSanityDamage(30.0f, true);
}

You are using the wrong callback. Write this instead:
void look(string &in asEntity, int alState)
{
SetEntityActive("wowpic", true);
GiveSanityDamage(30.0f, true);
}

Noob scripting tutorial: From Noob to Pro

04-30-2012, 12:09 AM
Find Reply


Messages In This Thread
Looking at my picture h??? - by VisualTech48 - 04-29-2012, 06:39 PM
RE: Looking at my picture h??? - by VisualTech48 - 04-29-2012, 07:32 PM
RE: Looking at my picture h??? - by VisualTech48 - 04-29-2012, 08:28 PM
RE: Looking at my picture h??? - by VisualTech48 - 04-29-2012, 11:34 PM
RE: Looking at my picture h??? - by VisualTech48 - 04-29-2012, 11:51 PM
RE: Looking at my picture h??? - by Cranky Old Man - 04-30-2012, 12:09 AM
RE: Looking at my picture h??? - by VisualTech48 - 04-30-2012, 01:13 AM



Users browsing this thread: 1 Guest(s)