How can I do a random function on a timer, which uses less that 1 second?
StormyStudio
United KingdomMember Posts: 3,989
Quick question,
I've tried myself but can't think out of the box...
Got a timer on an actor that i want to destroy at the end of a level, as there are a few I want them to disappear at different times as it will have a nice effect.
Currently I've used:
Timer..
'After' random (0,2)
Destroy actor.
......
Now the above works, but seems to only destroy actors at, 0, 1 or 2 seconds and not anyting in between e.g. 1.6 seconds.
Any ideas?
Just be nice, as there are more than 3 of this sort of actor and I'd like the time more varied.
I've tried myself but can't think out of the box...
Got a timer on an actor that i want to destroy at the end of a level, as there are a few I want them to disappear at different times as it will have a nice effect.
Currently I've used:
Timer..
'After' random (0,2)
Destroy actor.
......
Now the above works, but seems to only destroy actors at, 0, 1 or 2 seconds and not anyting in between e.g. 1.6 seconds.
Any ideas?
Just be nice, as there are more than 3 of this sort of actor and I'd like the time more varied.
Comments
in the part that changes the variable to variable*1.1
change it to (random(1,10))/10) that will give you random tenths.
so I guess you could create a new attribute for the ones place value and set it random(0,2) and in the timer value add the two variables.