man!!! the random sensor really sux! has anybody make a random script that really works?please share! LOL
Whatās so bad about the random acuator? Just make one, go to int uniform and then set the seed value really high.
Iām not exactly sure how to sue the random sensor though.
Pooba
Iām seriously playing around with the random actuator! It rocks! Sure, all it does is make random properties, but Iām playing with stuff like making AI actually look like itsā choosing to do things. One idea:
For a deathmatch, who wants AI that always shoots you in the chest or head? Make it aim for other places like your torso or your leg!
They need to add the other two properties (strings and timers) and need something cooler, but itās fine the way it is!
did i say ramdom actuator? iām really sure i said SENSOR.SENSOR,controller and actuator.the random SENSOR is not any good,you make it a very high number and itās supposed to make things random,but instead it makes things always.there is no diference between the always SENSOR and the random SENSOR.thatās why iām asking if there is a script for random.iām sure it will work right with a script.
Put this on the object:
from math import*
CON = GameLogic.getCurrentController()
us = CON.getOwner()
us.???? = int(GameLogic.getRandomFloat()* 100)
ā???ā is the name of whatever property you want to be random on that object. The number will be between 0-100
Was that what you wanted?
thanx Lagan,iāll try it later and i will tell you if it worked.
wellā¦that was not what i was looking for.i donāt want blender to choose a random property.i want something like:
random(sensor)-------and------------add object,move left,send a message,go to another scene etc. etc.
in other words events to happen randomly.
you can use the random acuator to do this. Heres an example:
Pooba
ugghhhh! all that trouble to make a random thing? then why is there a random SENSOR on blender?it could be easier if the random SENSOR works.after all,if itās there is for something.
ps: iām not lazy,what bothers me is that the random SENSOR doesnāt work.anyway,thanx pooba
Itās not hard, that took me like a minute!
Pooba