#Randomized Timer event hook?

16 messages · Page 1 of 1 (latest)

solar pasture
#

Is it possible to make the timer event hook pick a random value between 2 numbers?

grizzled zenith
#

@jaunty nexus you did it for the crates on your map

#

Help

jaunty nexus
#

uhhh so first of all randomizer mod hook is client side not server side (you can't alter values like hitboxes, you can only change visual stuff like models or something may break on servers)

#

just make timer event hook activate random event hook every 120s

#

and make random event hook make whatever you want

solar pasture
#

uh, im not sure what the random event hook is. youre not talking about this are you?

jaunty nexus
#

yes this one

#

when it's activated it rolls true or false with set chance and it activates other thing depending on the roll

solar pasture
#

i need more than a binary random though, i need it to activate at a random time between like 5 to 15 seconds

jaunty nexus
#

you could try changing value of timer component with binary random thing

#

but what do you want to do exactly

#

maybe there is better way of doing that without mod hooks

solar pasture
#

i want a barricade to play an audio clip every once in a while, but i want it randomized enough that it doesnt feel like theres any patterns, and that if theres multiple of the barricade nearby they dont overlap and play the noise at the same time

#

i currently have a binary random that triggers a timer with a 25% chance every few seconds, but i wanted something with more randomness i guess

#

ig i could just up the frequency of how often it rolls and then reduce the chance of it triggering to like a single digit percent