Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Script 1 ENTER
- {
- str texture[XXXXX] = { "texture_name_1", "texture_name_2", "texture_name_3", etc. }
- int texture_check, i;
- while(true)
- {
- texture_check = 0;
- if(GetActorProperty(0, APROP_Waterlevel) >= 3) /* if submerged */
- {
- for (i = 0; i < XXXXX; i++ ) /* loop that checks all listed textures above to see if on one */
- {
- if(CheckActorFloorTexture(0, texture[i])
- {
- ++texture_check;
- }
- }
- if(texture_check)
- {
- /* do the give item stuff or whatever you want here */
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement