Send Actor to Faction for set amount of Time

Post » Thu Sep 10, 2015 3:21 pm

Hi

For my mod I need to add an actior to a faction for a specific amount of time, after the time runs out he needs to automatically leave the faction.

Im struggling to get a sctipt for this going.

maybe someone can help

User avatar
Chloe Yarnall
 
Posts: 3461
Joined: Sun Oct 08, 2006 3:26 am

Post » Thu Sep 10, 2015 1:28 pm

Use RegisterForSingleUpdateGameTime and in the OnUpdate event remove them from the faction.

If you already have an OnUpdate loop in your game script, it may be easier to write a faction_expeller script that just manages adding and removing the player.
User avatar
Leanne Molloy
 
Posts: 3342
Joined: Sat Sep 02, 2006 1:09 am


Return to V - Skyrim