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
Final help with difficult script
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#12
RE: Final help with difficult script

Ok i've not long started the scripting this is what i have (im not sure if i've set it out right at all, to me there seems to be something missing).

////////////////////////////
// Run first time starting map
void OnStart()
{
AddCombineCallback("Mixed chemical 1", "chemical1", "pot", Mixedchemical,

true);
AddCombineCallback("Mixed chemical 2", "chemical2", "pot", Mixedchemical,

true);
AddCombineCallback("Mixed chemical 3", "chemical3", "pot", Mixedchemical,

true);
AddCombineCallback("Mixed chemical 4", "chemical4", "pot", Mixedchemical,

true);
AddUseItemCallback("addpottoground", "pot", "ground", "addpottoground",

true);
AddEntityCollideCallback("player", "CaveInArea", "cavein", true, 1);

AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true,

1);
}
void cavein(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("Sound_1", "explosion_rock_large.snt", "playsound", 0,

true);
StartScreenShake(5.0f, 5.0f, 5.0f,5.0f);
FadeOut(5.0f);
SetEntityActive("cavein1", false);

}

Dont mind the AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true,

this is for a path node for an enemy.
10-14-2010, 06:17 PM
Find


Messages In This Thread
Final help with difficult script - by LoneWolf - 10-13-2010, 07:43 PM
RE: Final help with difficult script - by Kyle - 10-13-2010, 09:30 PM
RE: Final help with difficult script - by HakePT - 10-13-2010, 10:24 PM
RE: Final help with difficult script - by ide - 10-13-2010, 11:07 PM
RE: Final help with difficult script - by Chilton - 10-14-2010, 02:57 AM
RE: Final help with difficult script - by LoneWolf - 10-14-2010, 06:17 PM



Users browsing this thread: 1 Guest(s)