F4llfield Posted January 9, 2023 Share Posted January 9, 2023 Hi, In a script you can use "setessentiel" and "setprotected" but it seems there is no "setinvincible" even if this is a settings in CK. Is it possible to do it in a script ? thx Link to comment Share on other sites More sharing options...
Fantafaust Posted January 10, 2023 Share Posted January 10, 2023 SetGhost should work Link to comment Share on other sites More sharing options...
F4llfield Posted January 10, 2023 Author Share Posted January 10, 2023 Thanks for your reply, I'll try that. Just hope my companion doesn't turn like a shadow :--) Link to comment Share on other sites More sharing options...
F4llfield Posted January 10, 2023 Author Share Posted January 10, 2023 I'm getting this error: SetGhost is not a function or does not exist I guess this function is for Skyrim only. Link to comment Share on other sites More sharing options...
Fantafaust Posted January 10, 2023 Share Posted January 10, 2023 Show me the code you tried to use? Link to comment Share on other sites More sharing options...
SKKmods Posted January 10, 2023 Share Posted January 10, 2023 I use SetGhost in my Fallout4 scripts, it is defined right here https://www.creationkit.com/fallout4/index.php?title=SetGhost_-_Actor BUT you need to use it on the actor not the objectreference: (ThisObjectReference as Actor).SetGhost(abIsGhost = true) Link to comment Share on other sites More sharing options...
F4llfield Posted January 10, 2023 Author Share Posted January 10, 2023 (edited) Thanks again, it works. I was missing the "abIsGhost =". I was only using "True". added: I was also, like you said, targeting the base actor. Edited January 10, 2023 by F4ll0uta Link to comment Share on other sites More sharing options...
LarannKiar Posted January 10, 2023 Share Posted January 10, 2023 (edited) Thanks again, it works. I was missing the "abIsGhost =". I was only using "True". added: I was also, like you said, targeting the base actor. I think you might be looking for the ActorBase script function SetInvulnerable() then (instead of "SetInvincible()"). Edited January 10, 2023 by LarannKiar Link to comment Share on other sites More sharing options...
Recommended Posts