Jump to content

-Fixed- Script Issue?


MaybeMe
 Share

Recommended Posts

Hey guys,

 

I've been watching Aggror's videos on Lua coding, and I ran into an issue first video and I don't want to go further without figuring out what I did wrong.

 

 

The player dies and it plays the death animation. The script works and the player respawns back at the spawn point, but he dies.

 

I've set the death trigger platform to "Trigger" but it is still solid.

 

How do I make it transparent so to speak?

Link to comment
Share on other sites

to make it transparent (invisable) you can apply the invisable material to the CSG box that is your death trigger. That material is in the Materials/effects folder and can be assigned by the scene view tab under appearance. I hope I have answered your question.

Asus sabertooth 990FX, AMD FX 9590 , Windows 7 Home Premium 64 Bit, 4 HDD's Western Digital Caviar Black set in Raid 0, 16 GB Crucial Ballistix Elite, Asus Radeon R9 270 X 4GB, Corsair CM750M,

Link to comment
Share on other sites

to make it transparent (invisable) you can apply the invisable material to the CSG box that is your death trigger. That material is in the Materials/effects folder and can be assigned by the scene view tab under appearance. I hope I have answered your question.

Materiels folder, Effects, Invisible.mat

 

Just drag it onto your trigger box, that will make it transparent.

Ah, I knew I should have chosen a different word.

 

What I mean't to say was how do I make the box itself able to go through? The character dies on impact and respawns, but doesn't pass through like it's supposed to.

 

Sorry for the misunderstanding.

Link to comment
Share on other sites

Did you move your death trigger closer to the player? I found that if the player falls a long way before hitting the trigger he will die on respawning.

This is what I ran into. I figured that is not supposed to happen.

 

It's not really fixed at all, I just thought it was since I rebuilt the trigger and script hoping it would solve it, and in doing so I moved it up so the player wouldn't die from the fall impact.

 

The way I viewed the video was that you could have it as far down as you wanted and it would still respawn the player, instead I recieve the death animation as though the player died from fall damage, when the death trigger has no collision mesh when it's set to "Trigger" and as far as I know it wasn't supposed to kill the player character.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...