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
quick question
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#3
RE: quick question

Yes it is Smile i updated my post i put down some incorrect info. Anyway i have no idea what it means by unexpected identifier.

Here is all my scripting to do with it, and the part before it =



AddUseItemCallback("", "hammer", "lever1", "switch", true);

void switch(string &in asItem, string &in asEntity)
{

AddTimer("music", 1, "TimerMusicDelay10");

GiveSanityBoost();
CompleteQuest("Quest_2", "Switch");

PlaySoundAtEntity("06_break_wood.snt", "06_break_wood.snt", "06_break_wood.snt", 0, false);
PlaySoundAtEntity("16_ladder_imp1.snt", "16_ladder_imp1.snt", "16_ladder_imp1.snt", 0, false);
SetEntityActive("castle_portcullis_1", false);

SetEntityActive("lever1", false);
SetEntityActive("lever2", true);
SetEntityActive("lever3", true);

RemoveItem("hammer");

CreateParticleSystemAtEntity("", "ps_hit_wood.ps", "ps_hit_wood.ps", false);
CreateParticleSystemAtEntity("", "ps_hit_metal.ps", "ps_hit_metal.ps", false);
}




Dont worry about how the 'adduseitemcallback' is positioned, its under onstart part and is with the rest, with } + { of course, i think i may have a spelling error but right now i cant see any, i have done this alot.

So hammer s used on Lever1, which activates switch function. So this cant be wrong?
(This post was last modified: 12-24-2010, 08:18 PM by LoneWolf.)
12-24-2010, 08:17 PM
Find


Messages In This Thread
quick question - by LoneWolf - 12-24-2010, 07:48 PM
RE: quick question - by Frontcannon - 12-24-2010, 08:00 PM
RE: quick question - by LoneWolf - 12-24-2010, 08:17 PM
RE: quick question - by Frontcannon - 12-24-2010, 09:06 PM
RE: quick question - by LoneWolf - 12-24-2010, 09:29 PM
RE: quick question - by xiphirx - 12-24-2010, 09:59 PM



Users browsing this thread: 1 Guest(s)