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 With .hps File
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#2
RE: [SCRIPT] Help With .hps File

Quote:void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("AGRUNT", true);
ShowEnemyPlayerPosition("AGRUNT");
}


{<-This little guy right here is what causes the error?? now please tell me why? and how to correctly right this
AddUseItemCallback("", "KEY1", "ADOOR1", "UsedKeyOnDoor", true);
SetEntityCallbackFunc("KEY1", "OnPickup");
}

If you compare the two scripts you wrote here, you are opening functions with your brackets. However, you aren't opening anything at all with your code at the bottom.

Creator of The Dark Treasure.
03-08-2012, 09:59 AM
Website Find


Messages In This Thread
[SCRIPT] Help With .hps File - by NaughtySly - 03-08-2012, 04:57 AM
RE: [SCRIPT] Help With .hps File - by Linus Ågren - 03-08-2012, 09:59 AM
RE: [SCRIPT] Help With .hps File - by Stepper321 - 03-08-2012, 12:00 PM



Users browsing this thread: 1 Guest(s)