Condition inArea (RP side)
Posted: Sun Mar 13, 2022 9:07 am
Good morning,
Taken the random jamming from https://www.matrixgames.com/forums/view ... 6&t=315208
Used a condition to be inArea from another post:
Thanks for all the info
unit_to_check = ScenEdit_GetUnit({name='Tessie #1', guid='P7ML9T-0HMG455P0227E'})
local checkval = false;
checkval = unit_to_check:inArea({'a1','a2','a3','a4'});
if checkval == true then
print('Raven in area');
return true
else
print ('Raven not in assigned area')
return false
end
A question:
Can I somewhere state which side the RP's should be from? If I tested correctly they can be from all sides.
Taken the random jamming from https://www.matrixgames.com/forums/view ... 6&t=315208
Used a condition to be inArea from another post:
Thanks for all the info
unit_to_check = ScenEdit_GetUnit({name='Tessie #1', guid='P7ML9T-0HMG455P0227E'})
local checkval = false;
checkval = unit_to_check:inArea({'a1','a2','a3','a4'});
if checkval == true then
print('Raven in area');
return true
else
print ('Raven not in assigned area')
return false
end
A question:
Can I somewhere state which side the RP's should be from? If I tested correctly they can be from all sides.