|
PASSABLE flag not applicable to map entities?
#319397
04/14/10 18:16
04/14/10 18:16
|
Joined: Dec 2008
Posts: 1,660 North America
Redeemer
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,660
North America
|
Hello, I've been trying to write a script that makes an invisible, passable block appear and become solid once a variable (boss_dead) is set:
var boss_dead = 1; // the boss is dead
action obj_hidden
{
my.passable = on;
my.alpha = 0;
my.transparent = on;
while( my )
{
if( boss_dead ) // if boss has died
{
if( my.transparent == on )
{
my.passable = off;
my.alpha += time_step*4;
if( my.alpha >= 100 )
{
my.alpha = 100;
my.transparent = off;
}
}
}
wait(1);
}
}
But the passable flag seems to have no effect when I attach my action to a map entity. My player object still collides with the map entity, even though it has PASSABLE set on. Is there any way I can get around this? I tried giving the map entity a lower push value than the player and using "IGNORE_PUSH" when I move player, but it makes no difference.
|
|
|
Re: PASSABLE flag not applicable to map entities?
[Re: Progger]
#319667
04/16/10 15:37
04/16/10 15:37
|
Joined: Dec 2008
Posts: 1,660 North America
Redeemer
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,660
North America
|
I have that flag on too. It makes no difference.
Last edited by Redeemer; 04/16/10 15:38.
|
|
|
Re: PASSABLE flag not applicable to map entities?
[Re: Superku]
#319885
04/18/10 16:12
04/18/10 16:12
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
Serious User
|
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
First; Im sorry - cause Im not sure what the problem is -
However I did try to make a mario game with A7 a while back, and had the same problem;
I was Trying to have it set up so that there was an invisible, passable block, that came visible when you hit with your head, but you could still stand on it while it was inactive..
So I dont believe it to be a problem with A6.
I do have a solution -
what if the initial block was a model, so you can have it passable, and then when the boss is dead, it ent_creates the map_entity, and removes the model.
Good luck! Devon.
|
|
|
|