The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing "Look" or "Health" of a door
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#1
Changing "Look" or "Health" of a door

So the issue I'm having here is that I can't find any function that changes the texture the door is using(in this case just a default mansion door).

The scare I want to happen here is the door to become damaged after the player completes a certain puzzle, basically the same thing that happens when an enemy is breaking down the door. The current workaround I have for this is to spawn a grunt when the player finishes the puzzle, tell it to go to a pathnode beyond the door, then despawn him after a few seconds, enough time to do said damage. The issue with that is that he makes a rather loud spawning sound and overrides any music playing, and the player can also see him clearly despawn through the hole in the door he produces.

I kinda feel like there's just some function I can't find that just lets you change the damage "state" of the door or something obvious like that, I tried the SetPropHealth function but that doesn't seem to do anything visually, atleast.

Any help appreciated!
(This post was last modified: 03-14-2012, 10:20 AM by Equil.)
03-14-2012, 07:54 AM
Find


Messages In This Thread
Changing "Look" or "Health" of a door - by Equil - 03-14-2012, 07:54 AM



Users browsing this thread: 1 Guest(s)