OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
so basically you want to know how to hide a waypoint?
-
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]
-
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
-
Thanks, I think I could avoid the radio message with the EnableRadio command
-
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?
-
[attachment deleted by admin]
-
I see... thanks
-
I forgot to solve the post