OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Serial Killer on 01 Aug 2005, 18:12:18
-
Can I somehow disable A.I.'s head moving? It doesn't look nice sometimes when he looks everybody near him. :-\ Especially in my mission's intro.
-
how about trying a dowatch and setdir command eg
unit dowatch game_logic
unit setdir 0
hope that helps
-
Ok, it seems to be working - thanks. Just one question.. What exactly that setDir command does? :)
-
i think it sets the unit in the direction specified eg 0 would be 0 degrees so it would be straight forward
basically think of it as set direction of the unit looking thats what i do the only thing im not sure about is if the units watches that direction straight away or is it over some time
-
even with a setdir and dowatch combo, units will always act normally, i.e. if there's another unit nearby, units will look at one another.
-
well im sue you can get around it because in one of the cutscenes on the CWC campaign near the begining it shows them all in line looking straight ahead
-
this DisableAI move perhaps
Or use a civillian invisible target (Not very convient sometimes, but :-\) and dowatch to that, and I guess they'll not look around to much
Not sure, disableAI should stop them, and if it's an intro, you can delete and recreate them if their needed to move around, and you shouldn't notice if the camera isn't on them when this happens
- Ben
-
well im sue you can get around it because in one of the cutscenes on the CWC campaign near the begining it shows them all in line looking straight ahead
they used a playmove or switchmove in combination with unitname stop true.
Edit. Like this:
v1 switchmove "FXStandAtt"
v1 stop true
-
I use unitName disableAI "AUTOTARGET", in combination with unitName dowatch whatever. It works for me.
-
If it's a problem in a cutscene, I generally just get them to watch a point far away (So it looks like they're all looking in the same direction).
eg.
"_x dowatch [(getpos _x select 0) - 1000, getpos _x select1, 0]" foreach units group
-
Thanks for all the answers! 8)