OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Undeceived on 07 Jan 2009, 00:28:35
-
Hi guys!
Is it possible to make the AI fellows react to the command(s) of the player with a custom voice sentence?
An example:
Player to sniper:
"7, move to that bush at 12 'o clock!"
Sniper (standard ArmA radio response):
"Roger!"
And then additionally, as an reaction to the order of the player (custom voice):
"Asshole!"
Is this possible?
I want to implement this in the mission I'm making... Like there was a sniper that had a bad attitude and complains when the player (squad leader) gives an order.
Thanks for your help!
-
Maybe the unitReady command can help. Biki says this about unitReady:
Check if the unit is ready. Unit is busy when it is given some command like move, until the command is finished.
So if the unit's status changes from unitReady to NOT unitReady, then maybe player has issued him a Move command. I have no idea if the normal AI behavior of following player changes this status or not. But if used in controlled situations it might work for you.
-
Thanks, johnnyboy!
Btw. this is exactly for your idea for "Evil's Last Will", do you remember (http://www.ofpec.com/forum/index.php?topic=31964.msg222399#msg222399)? ;)
I'll try it out and report here later, maybe because I didn't get it to work, but we'll see.
And... Haha :D Great signature!! :good:
-
Locked the topic, did you? :D Other people might have ideas too you know!
Anyway, with certain commands that lets the unit leave the formation (such as Move and Engage, I think), you can use the formLeader (http://www.ofpec.com/COMREF/index.php?action=details&id=143) command to check who is that unit's formation leader:
if (formLeader badAssGuy != leader badAssGuy) then {badAssGuy sideradio "Asshole"}
Something like that? :)
Wolfrug out.
-
??? Strange... No, I didn't lock it, or maybe by accident... :dunno:
However, it's open now. :) Thank you for your answer, Wolfrug!