OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wolf on 02 Jul 2003, 21:29:17
-
Alright guys, I got another Q for you.
I have a mission where you rescue an AI and they join your squad. But, what I don't want is for this unit to report enemy units. Is there any way to disable a specific AI radio, or something along those lines? I really need this AI to join, but it has to shut upfollow radio silence. ;)
But my other squad mates still need to be able to tell me things.
Thanks
-
You could keep him eternally stupid with a looping scroll perhaps.
something like
moron knowsabout EAST 0
where EAST is the entire enemy side? You've got me on the proper syntax but I think this could work in theory if he never "knows about" any enemy then he can't call em out right? ;)
-
MAYBE (not tested) you could go with the disableAI command. Steal the guy his brains by writing this into his init:
Hostage disableAI "TARGET"
-> so he does not watch a target the player maybe gives him.
Hostage disableAI "AUTOTARGET"
-> so he does not watch other targets
I just figure that if he doesn't watch any target, he can't report any, right? ::)
Hope this works! :)
-
Thanks, I'll give those a try.
-
:D hey wolfy :-* ;)
If you don't want him to talk at all, why not simply use a "doFollow" command.
Or make a short script:
=======================
#loop
? !alive Bob: exit
? Bob distance player >=10: Bob doMove Getpos player
~2
goto "loop"
=======================
P.S. then he don't even have to JOIN you at all ;D
-
Ok, well the disableai doesn't work. The AI still reports everything.
I don't know how to set up the knowabout script.
The only problem with the Dofollow is that after you rescue the AI, you pick an empty truck, and drive to a meeting point where the AI will leave your group to wait at this location, then the player drives off to another mission obj. Would the dofollow command have the AI get in the truck too?
-
nope, but a trigger could :
cond= player in truck
on Activ= Bob action ["get in", truck] ..... etc.
===========
P.S. make it a SWITCH trigger.
And the trick about NOT making him join ya is off course that you won't hear any radio crap then
-
Thanks, I'll try this out.