getting an actor to drop an object randomly?

Post » Thu Jun 21, 2012 4:10 am

Hi there,

I'd like to have one of my creatures occasionally drop an object, but don't know how to do it? Say once or twice a day, the actor drops 'object A'. Ideally, it would be a randomised time, rather than a specified moment.

Any idea how I could achieve this?

And if the answer is using scripting, I'm afraid I don't know the first thing about it. So would need a bit more help with that...
User avatar
Jade MacSpade
 
Posts: 3432
Joined: Thu Jul 20, 2006 9:53 pm

Post » Thu Jun 21, 2012 12:16 am

Don't know if it's possible any other way, but with scripting:

Scriptname Example extends ActorForm property ObjectA autoEvent OnInit()	RegisterForSingleUpdateGameTime(Utility.RandomFloat(12.0, 24.0))EndEventEvent OnUpdateGameTime()	PlaceAtMe(ObjectA)	RegisterForSingleUpdateGameTime(Utility.RandomFloat(12.0, 24.0))EndEvent
User avatar
Lil'.KiiDD
 
Posts: 3566
Joined: Mon Nov 26, 2007 11:41 am

Post » Wed Jun 20, 2012 4:21 pm

Cool - thanks! Will see if I can get it to work!
User avatar
Rachel Tyson
 
Posts: 3434
Joined: Sat Oct 07, 2006 4:42 pm


Return to V - Skyrim