Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 120 (int thingID, int thingSpawn, int newTID)
- {
- if (newTID == 0) newTID = thingID;
- if(thingSpawn > 0)
- {
- Thing_SpawnFacing(thingID,thingSpawn,1,newTID);
- }
- int i = 0.1;
- int j = 0;
- ThingSound(thingID,"dsf/spawn",127);
- Thing_Activate(newTID);
- SetActorProperty(newTID,APROP_RenderStyle,STYLE_Translucent);
- for(j = 1; j < 10; j++) //Fade the monster in
- {
- SetActorProperty(newTID,APROP_Alpha, i);
- i += 0.1;
- delay(2);
- } SetActorProperty(newTID,APROP_Alpha, 1.0);
- }
- Function void Thing_FadeIn (int thingID, int thingSpawn, int newTID)
- {
- ACS_ExecuteAlways(120,1,thingID,thingSpawn,newTID);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement