Whitsel 0 Posted April 19, 2008 Okay, I have posted at about 4 different forums three times now and no one has answered this for me so I figured I'd try here once... I am trying to create a trigger in which the unit(s) in it will surrender when conditions are met. here's what I have for the on act.: removeallweapons Grp1 Grp1 is the name of the opfor unit, just a single soldier I put in the cond. line: random 1 < 1 or random 1 > 1 or random 1 <= 1 / random 1>= 1 and the damn guy nvr removes his weapons! I put: random 1 < 0.1 and he'll wait a few seconds and do it EVERYTIME!!! Putting: random 1 < 0.9 does the same thing! I am not sure what the hell the problem is but it nvr works right! what am I doing wrong!? Plz Help, very frustrated! edit: also, I just tried changing the variable to like 0.001 and as I add more and more zeros the time untill he does the action lengthens??? Share this post Link to post Share on other sites
maddogx 13 Posted April 19, 2008 This belongs in the scripting forum. That aside, I'm having trouble understanding what you are trying to achieve with those "random 1" statements. For example: "random 1 < 1" will always return true, because "random 1" will always return a number smaller than 1. Because of this, "random 1 > 1" will always be false. "random 1 < 0.1" and "random 1 < 0.9" should give it a 10% or 90% chance respectively. I just gave it a try and it seems to work as expected. Share this post Link to post Share on other sites
Whitsel 0 Posted April 19, 2008 Sorry about the wrong section* -I only see WIP & Released and I guess this is WIP, but I am not releasing it to the public(unless asked). Trigger: okay, I just tried "random 1 < 0.1" -the 10%, right? previewed the trigger ten times in-a-row and every time the opfor would perform the 'on act.' action. it did not fail once! So I am guessing there is something wrong with my trigger? -its set to OPFOR, once, present. Share this post Link to post Share on other sites