Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Author: Angelis96
- // Time: November, 2018
- // Description: This script is meant to make an NPC Appear during the day and disappear at night.
- #include "amia_include"
- #include "x0_i0_anims"
- void main()
- {
- object TimeCheck1 = OnHeartbeat(GetIsDawn());
- object TimeCheck2 = OnHeartbeat(GetIsDusk());
- SetCreatureHomeWaypoint();
- if (TimeCheck1 = 1)
- {
- object oWaypoint1 = GetWaypointByTag("PLC_Waypoint1");
- object 1Location = GetLocation(oWaypoint1);
- ActionJumpToLocation(1Location);
- }
- if (TimeCheck2 = 1)
- {
- object oWaypoint2 = GetWaypointByTag("PLC_oWaypoint1");
- object 2Location = GetLocation(oWaypoint2);
- ActionJumpToLocation(2Location);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement