1

This one is self explanitory, I simply want a delay sensor to be a random number between 60 and 120.

Anybody know the solution?

angussidney
  • 109
  • 7

1 Answers1

1

You can use a python script to change the delay to a different random value each time it fires.

import bge
import random

cont = bge.logic.getCurrentController()

sens = cont.sensors['Delay']

sens.delay = random.randint(60,120)

Add the script to a text block in blender and connect a python controller to the delay sensor.

Game logic bricks setup

sambler
  • 55,387
  • 3
  • 59
  • 192