-
Captain
Is there any way to detect the AI Skill Level via trigger or something?
MattXR ( MxR )
Check out my Twitter BIS Fans and Sub! 
-- MRKCCO Twitter --
-
Moderator, ret.
oida ouk eidos
Look at this page. Try "skill aiunitone"...
-
Captain
trg=createTrigger["EmptyDetector",getPos player];
trg setTriggerArea[10000,10000,0,false];
trg setTriggerActivation["ANY","PRESENT",true];
trg setTriggerStatements["this", "'{_x = Skill} forEach thislist'", ""];
That doesnt work i dont get no hint saying what the AI Skill is as the AI is not named.
Or is there any command on how to find a units name?
-
you don't need a "name" and your trigger statement is completely malformed.
it should be
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
trg setTriggerStatements["this", "'{myUnitSkillVariable = Skill _x} forEach thislist'", ""];
[/QUOTE]
but that doesn't matter anyways... first, I don't see where you "hint" anything.. second, the above code is useless because the global variable I made up "myUnitSkillVariable" will change for each unit and thus you only get the last unit's skill anyways.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules