SHARE
TWEET

Lava crap

skroton May 22nd, 2016 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Script 1 ENTER
  2. {
  3.   str texture[XXXXX] = { "texture_name_1", "texture_name_2", "texture_name_3", etc. }
  4.   int texture_check, i;
  5.   while(true)
  6.   {
  7.     texture_check = 0;
  8.     if(GetActorProperty(0, APROP_Waterlevel) >= 3) /* if submerged */
  9.     {
  10.       for (i = 0; i < XXXXX; i++ ) /* loop that checks all listed textures above to see if on one */
  11.       {
  12.         if(CheckActorFloorTexture(0, texture[i])
  13.         {
  14.           ++texture_check;
  15.         }
  16.       }
  17.       if(texture_check)
  18.       {
  19.         /* do the give item stuff or whatever you want here */
  20.       }
  21.     }
  22.   }
  23. }
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