i have a player and a block. i want the player have a transparancy of 0.8 when you press space. i made it and it works just fine, but now i want to make the player die if he collides with the block when he isn't transparent, but when he is (0. nothing happens.
when i try do make it with this script:
- Code: Select all
if(player.transp=0)
{
DestroyActor("player");
}
the player gets solid if he collides the block , but when he is solid nothing happens :S
what is wrong with it??