Thank you wolf
Well, my other problems are with scripts which I'm sure they're correct but they don't work completely.
For example (I attached this to a clean barrel model which its static mode is set to no and it's always active):
function testing_init(e)
end
function testing_init(e)
Pdis = GetPlayerDistance(e)
if Pdis < 100 then
Destroy(17)
Destroy(10)
SetActivated(19,1)
SetActivated(18,1)
end
end
17 is the ID of an animated tree model. This line doesn't work. But the next line destroys a door (10). So the destroy command only works perfect in the second line. Maybe animated models can't be destroyed like this, right?
And set activated lines don't work at all. I set 2 characters not to spawn at start and become activated after becoming close to the clean barrel model. However, nothing happens. I remember activating some mine models some time ago without problem.
Ah! And there's this one too: I put a drunk man behind a door to surprise the player after opening it. But before opening, the hand of the drunk man comes out of the door! I even put an invisible wall behind the door so that his hand doesn't get pass. Nope. Again he tries to attack just like there's no obstacle between him and the player. I set a destroy command for the invisible wall too. Fortunately, it works. So maybe the problem of my scripts is with animated models.
Sorry for my long text
And thank you again for your answer
Good luck