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.