OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kilo11 on 17 Dec 2004, 19:37:39
-
Alright, Im going to try and explain this, and I assume it is not htat hard, but I am not very good at scripting.
There is a large Russian held base, that is eavily garded. I am trying to established a complex system of radio's and communication between all of the outposts, gardes, and main base.
I have the following:
-When west is detected by east near an outpost, a gaurd will run to the radio and alert the base of enemy movement in their area.
-When any report is given to head qaurters, the alarm sounds and reinforcments arive promptly.
-If anyone near the main base who is garuding sees enemy units, they will shout out and gaurds neerby will press the alarm, twhich goes to HQ, which then sends reinforcements.
What I need:
-There are many patrols far from the base, but closer to the outposts. naturaly they report to the out post being that they are closer. I want a script that:
-Is user defined detection. I want a script/trigger that I can set up so that instead of ANY east unit detcting the west, it can only be a SINGLE unit or group.
-I would also like to know how to create a lmited range. If a gaurd shouts but no one is within 100m of him, they cant hear him, etc. So if he detects west, he shouts but if no one is close enough, the alarm wont go off.
Any help would be greatly appreciated! If u have confusion just ask.
-
youll need to use the knowsabout command for detection (a common problem causer I believe) and the distance command, which I can tell you about
? patroldude distance HQdude >=100
syntax could be wrong but the essence is there. the objects and operators may need swapping about
-
Thanks that worked!
now what about a specific detection? Meaning I can set it to it will only be activated if a specific squad/person detects them?
-
Group the trigger to the group leader. You will get new options in the Activation box which might help.
-
Ive done that, doesnt work.