daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest Dec 9th, 2016 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top