Jump to content

Recommended Posts

2 hours ago, JackyHann said:

This is a pretty simple problem, but I couldn't find anyone with the same problem. How do I make a character simply not be attacked in the dark?

someplayer.components.grue:AddImmunity("myuniquemodname")

Then remove it via:

someplayer.components.grue:RemoveImmunity("myuniquemodname")

What? I...sorry, I'm a junior member. I copy/pasted someplayer.components.grue:AddImmunity("harvard") under

local function common_postinit(inst)
    someplayer.components.grue:AddImmunity("harvard")
 
end
in the lua file of my character's prefab folder, and it didn't work...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...