So I have a guy I want to have run and hide, and I've picked several spots out where he'd (hopefully) be safe. I'd like to randomize which spot he picks and I think I can do this with a randomized number feature, but I'm not sure how to set up the syntax properly.
Something like this:
if (x >= 0 and X < .1) then (guy move getpos spot 1)
if (x >= .1 and X < .2) then (guy move getpos spot 2)
so on and so forth through "spot 9"
where the range that the randomly generated number falls into determines where he goes.
'Cept obviously I don't know how to do it properly.
Could somebody show me how this would work?
And another thing....does anybody how many decimal places does OFP carry randomly generated numbers out to? IE 1.4, 1.456, 1.4298234. etc.