Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
AI and waypoints
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: AI and waypoints (Read 625 times)
0 Members and 1 Guest are viewing this topic.
eversman
Guest
AI and waypoints
«
on:
16 Jul 2003, 21:24:22 »
Hi all....
I have a problem. In my mission i have unit - pointman - and players squad must goes follow him. I add couple triggers to give orders to this guy (stop, go, join and unassign from players group). Everything looks fine but when my pointman are unassigned from group stay in one place. I want do that he must follow his waypoints. What can i do it?
Logged
macguba
Former Staff
Re:AI and waypoints
«
Reply #1 on:
16 Jul 2003, 21:49:30 »
Only a group can have waypoints. So your pointman has to join a group that has the waypoints you want him to follow.
Create a gamelogic. Give it the waypoints that you want your pointman to have. Write this in the init field
pointGrp = group this; deletevehicle this
Then, when you want your pointman to go off on his own, use
[pointman] join pointGrp
Even though the gamelogic has been deleted the group still exists.
At least, I think that should work. Try it and see how you get on.
If I'm wrong somebody correct me.
Logged
Plenty of
reviewed ArmA missions
for you to play
Blanco
Former Staff
Re:AI and waypoints
«
Reply #2 on:
16 Jul 2003, 22:41:56 »
interesting macguba
I didn't know u could give move-waypoints to a gamelogic...
Gonna try that tonight.
Logged
Search
or
search
or
search
before you ask.
macguba
Former Staff
Re:AI and waypoints
«
Reply #3 on:
17 Jul 2003, 00:30:50 »
Yep, you can do all kinds of cool stuff with a GL. It can do pretty much everthing an ordinary unit can do.
In this case, since it's deleted, you could just use an ordinary unit, but a GL seems more elegant.
Logged
Plenty of
reviewed ArmA missions
for you to play
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
AI and waypoints
Top of page