SetGhost() ?

Post » Mon Jun 18, 2012 9:23 am

What exactly does SetGhost() do? It can only be called on actors and the wiki simply states it flags them as a ghost. Does anyone have any idea what scripts would actually check for this or use this? I noticed that in the werewolf transformation script, they actually set the player to a ghost when they transform you back into your human form, but not when transforming you into a werewolf. It's rather strange and I don't see the significance, but it must be there for a reason, right?
User avatar
Brad Johnson
 
Posts: 3361
Joined: Thu May 24, 2007 7:19 pm

Post » Mon Jun 18, 2012 2:50 pm

What exactly does SetGhost() do? It can only be called on actors and the wiki simply states it flags them as a ghost. Does anyone have any idea what scripts would actually check for this or use this? I noticed that in the werewolf transformation script, they actually set the player to a ghost when they transform you back into your human form, but not when transforming you into a werewolf. It's rather strange and I don't see the significance, but it must be there for a reason, right?
When creating new NPCs you can check SetGhost. I think that makes attacks and spells go straight through them.
User avatar
candice keenan
 
Posts: 3510
Joined: Tue Dec 05, 2006 10:43 pm

Post » Mon Jun 18, 2012 4:46 pm

When creating new NPCs you can check SetGhost. I think that makes attacks and spells go straight through them.

Hm, seems plausible, but I'm not so sure.

I checked the werewolf script again and it turns out I was wrong about it not switching the player back after it is done. It seems that the player is set as a "ghost" the entire time that he is a werewolf. However, I've played as a werewolf and I've had spells hit me.
User avatar
Luis Reyma
 
Posts: 3361
Joined: Fri Nov 02, 2007 11:10 am

Post » Mon Jun 18, 2012 4:05 pm

http://www.creationkit.com/SetGhost
User avatar
LADONA
 
Posts: 3290
Joined: Wed Aug 15, 2007 3:52 am

Post » Mon Jun 18, 2012 5:51 am

http://www.creationkit.com/SetGhost
Hmm. It's odd that the werewolf script uses this then. Guess I'll have to try and dissect it again.

Also I must say I hate that the http://www.creationkit.com/SetGhost_-_Actor page makes no mention of what it actually does, nor does it direct me to the page you linked. I assumed that was all the information the website had on the function :/
User avatar
Adam
 
Posts: 3446
Joined: Sat Jun 02, 2007 2:56 pm


Return to V - Skyrim