Go Back   Codemasters Forums > Action, RPG and Strategy Games > Operation Flashpoint: Dragon Rising > English > Operation Flashpoint: Dragon Rising - Mission Editing and Modding Chat Zone
Sign In
Register on CodeM

Operation Flashpoint: Dragon Rising - Mission Editing and Modding Chat Zone A little area for all you mission editors and modders to chat and discuss ideas.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-10-2009, 03:55 PM   #1 (permalink)
Senior Member
 
Join Date: Jul 2009
Posts: 172
Exclamation Smooth Waypoint Path my ***! What the heck?

So, a long time ago i got this message from Helios. I was asking if the waypoint system was like in army, where the AI stopped at each waypoint before the continued to the next. This would allow me to create a smooth path along roads ect.
Quote:
Originally Posted by Helios
Many thanks to Jason one of the games programmers, for the answer
"Nope, if the AI is given a move order to a waypoint path (this is an array of waypoints connected in the editor), then the AI will smoothly drive along the waypoints as a single path. If you want that behaviour, you can chain move orders to each waypoint in script as a series of moveTo commands."
So, know I got the editor? And what the hell.. If a set up a waipoint path like this:

The AI does exactly the same as in Arma II! The APC stops at every waypoint, says "move grid xxxxxx", and the other replys affirmative or somethings, and then moves on? What's with that?
xDumDumx is offline   Reply With Quote
Old 11-10-2009, 04:10 PM   #2 (permalink)
Member
 
Join Date: Oct 2009
Posts: 47
Default

It's because there is a diffrence between a "waypoint" and a "waypointpath".
If you study the properties for your waypoints you'll see there is something called "Path name".
If you want the units to move smoothly you have to make a "move" command that refers to this waypointpath.
This can (by my knowledge) only be done by using the Level LUA script.
I'll be happy to make an example if you require it. Just PM me.
Lucky Ed is offline   Reply With Quote
Old 11-10-2009, 04:57 PM   #3 (permalink)
Junior Member
 
ZDoc's Avatar
 
Join Date: Aug 2009
Location: Right behind you
Posts: 21
Default

How do you do that?

Can you post an example script?

Thanks..
ZDoc is offline   Reply With Quote
Old 11-10-2009, 05:32 PM   #4 (permalink)
Member
 
Join Date: Oct 2009
Posts: 47
Default

Quote:
Originally Posted by ZDoc View Post
How do you do that?

Can you post an example script?

Thanks..
It's actually similar as to script a move command to a waypoint. you just use the waypointpath name instead. eg:

Code:
function onMount_vehiclename_echelonName
    OFP:move("EchelonName","waypointPATHname",OVERRIDE);
end
Lucky Ed is offline   Reply With Quote
Old 11-10-2009, 06:23 PM   #5 (permalink)
Junior Member
 
ZDoc's Avatar
 
Join Date: Aug 2009
Location: Right behind you
Posts: 21
Default

thanks mate
ZDoc is offline   Reply With Quote
Old 11-10-2009, 06:25 PM   #6 (permalink)
Senior Member
 
Join Date: Jul 2009
Posts: 172
Default

Doesn't seem to work.. It says '(' expected near OFP.. Besides, the blue colour disappaers when on "onMount" when i write _vehicleName
xDumDumx is offline   Reply With Quote
Old 11-10-2009, 06:38 PM   #7 (permalink)
Member
 
Join Date: Oct 2009
Posts: 47
Default

Quote:
Originally Posted by xDumDumx View Post
Doesn't seem to work.. It says '(' expected near OFP.. Besides, the blue colour disappaers when on "onMount" when i write _vehicleName
Well it was just an example script. you have to add your own waypoint, vechile and unit names.
Plus I don't think the onMount function will work when the units a already aboard the vehciles.

Have you read the help file for the editor? There's some pretty nice tutorials +sample missions on all of this.
Lucky Ed is offline   Reply With Quote
Old 11-10-2009, 06:40 PM   #8 (permalink)
Senior Member
 
Join Date: Jul 2009
Posts: 172
Default

Quote:
Originally Posted by Lucky Ed View Post
Well it was just an example script. you have to add your own waypoint, vechile and unit names.
Plus I don't think the onMount function will work when the units a already aboard the vehciles.

Have you read the help file for the editor? There's some pretty nice tutorials +sample missions on all of this.
I know, i know, i just wrote vehicleName because other could use it then.. I had insertet my own vehicle name (in this case vu01m1a2)
xDumDumx is offline   Reply With Quote
Old 11-10-2009, 06:51 PM   #9 (permalink)
Member
 
Join Date: Oct 2009
Posts: 47
Default

Quote:
Originally Posted by xDumDumx View Post
I know, i know, i just wrote vehicleName because other could use it then.. I had insertet my own vehicle name (in this case vu01m1a2)
Try this:
Code:
function onMissionStart()
    OFP:move("EchelonName","waypointPATHname","ADDTOFRONT");
end
Could you copy paste your version of the script here, if this dosn't work?
Lucky Ed is offline   Reply With Quote
Old 12-10-2009, 09:01 AM   #10 (permalink)
Senior Member
 
Join Date: Jul 2009
Posts: 172
Default

Still doesn't work mate (: so, this is my script:

Quote:
function onMissionStart()
OFP:move("Ehcelon","waypointp","ADDTOFRONT")
end
and this is how it looks:
xDumDumx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.