I was actually just scripting it in a .txt file. ._________.
Thank you though.
And that last suggestion may/may not be implemented into the final product.
However, i still have one issue that isn't because of that, let me just post that script here....
Spoiler below!
AddEntityCollideCallback("Player", "earthquakenote", "OnPickup", true, 1);
AddEntityCollideCallback("Player", "doorunlock", "open_door", true, 1);
SetEntityCallbackFunc("earthquakenote", "OnPickup");
SetEntityPlayerLookAtCallback("wind", "windopen", true);
Later in the script;
Spoiler below!
void OnPickup(string &in asEntity, string &in type)
{
if(type == "OnPickup")
{
SetEntityActive("doorunlock", true);
SetEntityActive("wind", true);
}
}
void windopen(string &in asEntity, int alState)
{
if(alState == 1)
{
SetSwingDoorDisableAutoClose("earthquakedoor", true);
SetSwingDoorClosed("earthquakedoor", false, true);
AddPropForce("earthquakedoor", 0, 0, 900, "world");
}
}
Im trying to make it, after the note has been picked up, and you look at a certain area, the door will fly open. For some reason it's not working, i'm not sure what the issue is. The area the player would look at would be "wind".