Hi all, I'm trying to get the idea of scripting down, I really don't know how yet, but I have the idea of varialbes down I just don't know how to use them and command the script to do what I want it to do.
I know this is not correct but this is just an idea of an attack by a simple west soldier against and east soldier, this is what I want to happen..
_throw = _this select 0
_Detect = _this select 1
_Attack = _this select 2
_Soldier1 = _this select 3
_enemy1 = _this select 4
If _soldier1 detects _enemy1 then throw "grenade" at _enemy1 if _soldier1 is close enough to _enemy1
As you can see it's pretty straight forward, if west detects east then throw grenade if close enough.
Well I really don't know how to use this, anyone help and please keep it simple like this as close as you can or atleast so I can understand it and I really only know about variables and doing simple things with soldiers and stuff.
thanks..