Had a go at a mission using your scripts on our server and I'm very pleased to say that they worked exactly as they did in the editor.
...and I'm very pleased to hear that!
I'm a bad MP scripter and I'm glad it works in MP.
Indeed, they are hard to spot and kill iwhen you attack them from the front, even if you are a sniper.
(I've not looked at the code really, yet), is the direction the units cover a getpos of the officer?
No, a getdir of the officer.
A gamelogic should work too, but I don't wanted the user to put many things in the editor to make it work.
Have a sniper on a hill a while back, have him as the "officer",
And have the other units in buildings..
Yes, that's possible, but they start in group iwith SAFE behaviour, but I have to ungroup them all (otherwise watchdirections are f*cked up) when they start to shoot, so the sniper is not a functional spotter.
So when the sniper spots enemys, he can alert the units in the buildings..
Yes, but that's all he can do, he can't report the loacations of the enemy to the others in the buildings.
I really really wanna make work in group, it would make things so much easier.
Tommorow (probably) I will release the script with the custom ICPanims (non-fixed) for crew of static weapons or vehicles... . It can be used for normal guards too. It's easy and it works perfectly.
It's nice to spice up your intro and for the first time you mission too.
Also I'm working on the scripts for fixing positions, the doorway/window stuff is done and works pretty well.
It looks like the soldier feels like there somebody around and he will change his direction when somebody come through the doorway or spots somebody through another window.
I did a test yesterday with a WEST sniper in a building and 5 EAST guys (all of them default skill) with a SEARCH and DESTROY waypoint on top of the building.
My sniper shot two of them from pretty far, the EAST group decided to flank him so they're out of sight of the sniper.
When they were close to the building, my WEST guy sniped one through the window on his left, another one was killed in the doorway.
Then the last East guy killed him from the rear through the window while my sniper was guarding the doorway.
Offcourse if the EASTgroup was smarter they've thrown one grenade and end of story.
But they didn't and lost 4 men.
I've put a machinegunner in his placeand he killed them all before they were close to the building
I was thinking about giving him a handgun,then when the enemy is close to the building, switch to his handgun etc...but I'm stuck with a reload problem.