Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. script 120 (int thingID, int thingSpawn, int newTID)
  2. {
  3. if (newTID == 0) newTID = thingID;
  4. if(thingSpawn > 0)
  5. {
  6. Thing_SpawnFacing(thingID,thingSpawn,1,newTID);
  7. }
  8.  
  9. int i = 0.1;
  10. int j = 0;
  11. ThingSound(thingID,"dsf/spawn",127);
  12. Thing_Activate(newTID);
  13. SetActorProperty(newTID,APROP_RenderStyle,STYLE_Translucent);
  14. for(j = 1; j < 10; j++) //Fade the monster in
  15. {
  16. SetActorProperty(newTID,APROP_Alpha, i);
  17. i += 0.1;
  18. delay(2);
  19. } SetActorProperty(newTID,APROP_Alpha, 1.0);
  20.  
  21.  
  22. }
  23.  
  24.  
  25. Function void Thing_FadeIn (int thingID, int thingSpawn, int newTID)
  26. {
  27. ACS_ExecuteAlways(120,1,thingID,thingSpawn,newTID);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement