OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: R.I.P-omega- on 08 Oct 2005, 23:34:52
-
Hi, I have a problem i want to get a soldier to walk therew a buliding corriedor and i tryed to use waypoints and it dosent seem to work... he just goes around the building instand threw the corriedor even if i put him inside the corriedor in the middle of it he turnes back and goes around it once agin....
how cold i make him go threw that corriedor?
-
Units in Flashpoint have trouble doing anything inside buildings. Which building is it?
-
Have you tried waypointing the unit to a persific position in the building?
Kinda of hard to explain.
Click on the waypoint button, then click on the building itself. You should get an extra menu in the waypoint menu. Its on the right of the box, and has 'Pos1' in it if I remember rightly.
You can change this to make the unit go to different positions ;)
-
if its a straight coridor then its simple,
just get the unit to stand infront of the corridor and when he gets there have him activate a script,
[unit name]exec"gothru.sqs"
[u]gothru.sqs[/u]
_unit = _this select 0
_unit playmove"combatrunf"
~1
_unit playmove"combatrunf"
~1
_unit playmove"combatrunf"
~1
_unit playmove"combatrunf"
Repeat
_unit playmove"combatrunf"
~1
_unit playmove"combatrunf"
until he gets
thru to the other side
then put exit
that will force him to go.
-
Well it dose work BUT beteewn evrey animation that he dose there is a sudden stop to the animation, its not flewood cold i make it more flowood?(mind my english)
-
certainly. just decrease the wait value (~1) to something else. try, say, ~0.5.