Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // Author: Angelis96
  2. // Time: November, 2018
  3. // Description: This script is meant to make an NPC Appear during the day and disappear at night.
  4.  
  5. #include "amia_include"
  6. #include "x0_i0_anims"
  7.  
  8. void main()
  9. {
  10. object TimeCheck1 = OnHeartbeat(GetIsDawn());
  11. object TimeCheck2 = OnHeartbeat(GetIsDusk());
  12.  
  13. SetCreatureHomeWaypoint();
  14.  
  15. if (TimeCheck1 = 1)
  16. {
  17. object oWaypoint1 = GetWaypointByTag("PLC_Waypoint1");
  18. object 1Location = GetLocation(oWaypoint1);
  19. ActionJumpToLocation(1Location);
  20. }
  21.  
  22.  
  23. if (TimeCheck2 = 1)
  24. {
  25.  
  26. object oWaypoint2 = GetWaypointByTag("PLC_oWaypoint1");
  27. object 2Location = GetLocation(oWaypoint2);
  28. ActionJumpToLocation(2Location);
  29.  
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement