Yab 0 Posted March 11, 2007 What are diferences between 'setunitpos' and 'setunitposweak'. It seems that both doesnt work in editor in preview mission Next question - what is a command to set wapoint's heigh (like to walk on some level in bulding or between levels)? Share this post Link to post Share on other sites
Balschoiw 0 Posted March 11, 2007 Setunitposweak allows the unit to adjust the given setunitpos according to circumstances. There are 4 modes: "UP", "DOWN", "MIDDLE", "AUTO" Setunitpos is more strict on the AI. It will limit the AI to the given setunitpos. If you want to have it working 100 percent, so that the unit does not fall of a rooftop or such add disableAI "MOVE" to the inti line aswell. Quote[/b] ]It seems that both doesnt work in editor in preview mission They do To adjust the height of a WP use the command SetWpPos Example: [unitname,1] setWPPos [(getWPPos [unitname,1] select 0),(getWPPos [unitname,1] select 1),50] This will move the waypoint for unitname to a height of 50 You have to experiment with the correct heights for the building you want to operate in. Share this post Link to post Share on other sites
Big Dawg KS 6 Posted March 11, 2007 To adjust the height of a WP use the commandSetWpPos Example: [unitname,1] setWPPos [(getWPPos [unitname,1] select 0),(getWPPos [unitname,1] select 1),50] This will move the waypoint for unitname to a height of 50 You have to experiment with the correct heights for the building you want to operate in. Actually it would be the name of the group, not the unit. And the only difference between setUnitPos and setUnitPosWeak is that setUnitPos takes priority over setUnitPosWeak (the latter is used in FSMs), at least that's my impression. Share this post Link to post Share on other sites
Yab 0 Posted March 15, 2007 Setunitposweak allows the unit to adjust the given setunitpos according to circumstances. There are 4 modes: "UP", "DOWN", "MIDDLE", "AUTO" Setunitpos is more strict on the AI. It will limit the AI to the given setunitpos. If you want to have it working 100 percent, so that the unit does not fall of a rooftop or such add disableAI "MOVE" to the inti line aswell. Quote[/b] ]It seems that both doesnt work in editor in preview mission They do To adjust the height of a WP use the command SetWpPos Example: [unitname,1] setWPPos [(getWPPos [unitname,1] select 0),(getWPPos [unitname,1] select 1),50] This will move the waypoint for unitname to a height of 50 You have to experiment with the correct heights for the building you want to operate in. doesnt work. There is an error saying 'group needed' (or sth like that, i dont know in english coz i have polish version) no matter if i use unit's name or group's name. Or maybe ive been doing sth wrong coz squad leader of the group is set to be invisible (propability to spot him = 0) Share this post Link to post Share on other sites