OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 27 Aug 2002, 19:23:33

Title: Creating waypoints
Post by: seanver on 27 Aug 2002, 19:23:33
Is there any way to create a waypoint for a unit with a command? Or is there anyway to show the yellow square? I'm making a mission and I wish to indicate the player when an event take place that he must find for some bad guys, but at the beginning of the mission I don't want to show any waypoint. Ideas?
Title: Re:Creating waypoints
Post by: LimeCordial on 27 Aug 2002, 20:15:16
so basically you want to know how to hide a waypoint?
Title: Re:Creating waypoints
Post by: Bremmer on 27 Aug 2002, 20:27:50
Place a unit on the map (make sure it is on the same side as the player). In its init field put emptygroup = group this; deletevehicle this. Give this unit the waypoints you want to appear.

What this has done is create an empty group with the waypoint path you require. When you want the waypoints to appear you can do so by joining the player into this group, using [player] join emptygroup.

You'll get an unusual command ("1, follow 1") but it does allow you to make waypoints appear (and dissappear/reappear ...). Just be careful if the player is part of a larger group, or you are using other commands that rely on group names.

Cheers

[edit] bloody typos  >:([/edit]
Title: Re:Creating waypoints
Post by: Chris Death on 27 Aug 2002, 20:32:21
There's another way to do that, with switch triggers
and setwppos.

I'll be back home (from work) in around 3 hours, then
i'll try to find a solution and post it in here.

~S~ CD
Title: Re:Creating waypoints
Post by: seanver on 27 Aug 2002, 20:33:50
Thanks, I think I could avoid the radio message with the EnableRadio command
Title: Re:Creating waypoints
Post by: seanver on 27 Aug 2002, 21:07:11
Other question about waypoints. Is there any way to keep the description text on the waypoint instead of the "waiting for others" when the waypoint has a condition?
Title: Re:Creating waypoints
Post by: Bremmer on 27 Aug 2002, 21:38:30


[attachment deleted by admin]
Title: Re:Creating waypoints
Post by: seanver on 27 Aug 2002, 21:39:31
I see... thanks
Title: Re:Creating waypoints
Post by: seanver on 27 Aug 2002, 22:02:47

 I forgot to solve the post