Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //From my Amnesia Rebirth Tutorial Series
- //Episode 11 Enemies! Basic Functionality!
- //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
- //-----------------------------------------------------------
- //Adds functions for ghoul and agent control
- #include "helpers/helper_agent.hps"
- //Sets the mode that the ghoul should be operating in
- Ghoul_Mode_Set("ghoul_hallway", eGhoulMode_Hunt, false);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //ghoulMode (eGhoulMode)- the mode to put your ghoul in (type eGhoulMode to see all possible modes).
- //force (bool)- force the mode change or allow the ai to change modes at best possible time. (true or false)
- //Sets the ghoul to instantly kill the player
- Ghoul_SetInstantKill("ghoul_hallway", true);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //enable (bool)- whether or not you want to set the ghoul to instantly kill (true or false).
- //Should the ghoul smell around for the player
- Ghoul_SetSmellingActive("ghoul_hallway", false);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //enable (bool)- whether or not you want to set the ghoul to smell for the player (true or false).
- //Should the throw be cancelled and player still receive throw damage
- Ghoul_CancelPlayerThrow("ghoul_hallway", true);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //enable (bool)- whether or not you want to set the ghoul apply throw damage but not play the throw animation (true or false).
- //Should the ghoul avoid throwing the player and just do normal attacks
- Ghoul_SetAllowPlayerThrow("ghoul_hallway", false);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //enable (bool)- whether or not you want to set the ghoul to only hit the player without throwing (true or false).
- //Have the ghoul eat an entity
- Ghoul_EatMeat("ghoul_hallway", "entity_to_eat");
- //enemyName (String)- name of enemy as it appears in the level editor.
- //entityToEat (String)- name of entity that should be eaten.
- //Can the ghoul attack the player
- Ghoul_SetCanAttack("ghoul_hallway", false);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //enable (bool)- whether or not the ghoul should attack the player.
- //Check to see if the ghoul is currently aggressive
- Ghoul_IsAggressive("ghoul_hallway");
- //enemyName (String)- name of enemy as it appears in the level editor.
- //Check to see if the ghoul is currently suspicious
- Ghoul_IsSuspicious("ghoul_hallway");
- //enemyName (String)- name of enemy as it appears in the level editor.
- //Force the ghoul to throw the player only in a specified direction
- Ghoul_SetPlayerThrowForcedDirection("ghoul_hallway", -1);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //direction (int)- the direction the player will be thrown -1 = all, 0/1/7 = forward, 2/3 = left, 4 = back, 5/6 = right
- //Calls a method after ghoul throw is finished
- Ghoul_SetCallback_ThrowAnimationOver("ghoul_hallway", "OnThrowFinish_GhoulHallway", true);
- //enemyName (String)- name of enemy as it appears in the level editor.
- //functionName (String)- name of the function to call.
- //oneRun (bool)- should this call back only occur once (true or false).
- void OnThrowFinish_GhoulHallway(){
- cLux_AddDebugMessage("You just got yeeted!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement