×
Меню
Индекс

MSFD Change to a werewolf

BecomeWerewolf
UndoWerewolf
 
     Actor->BecomeWerewolf
     Actor->UndoWerewolf
 
These functions change the target object to a Werewolf or change them back to their original form. IMPORTANT: Using Becomewerewolf and Undowerewolf CAN break your game. Some quests and variables depend solely on use of these, so if you use one to toy around.... you may be asking for it. (This message brought to you by your friendly dev WormGod).
 
Note:
When the player is a werewolf, the only thing you can detect them activating (Using OnActivate) is doors.
If you want to detect the player activating an object, or even another werewolf, one method is to use an invisible door and place it over the object you want to detect the activation of.
 
 
if ( OnPCEquip == 1 )
     Player->BecomeWereWolf
     Set OnPCEquip to 0
Endif
 
Set timer to ( timer + GetSecondsPassed )
 
If ( timer > 10 )
     Player->UndoWereWolf
Endif