OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Colossos on 24 May 2005, 18:14:05
-
Suppose i have 4 seperate soldiers (sol1,sol2,sol3 and sol4) in a base and they are patrolling all in different directions. How do I group these 4 soldiers together and execute a script that applies to those 4 soldiers? It's kinda ridiculous to make a script for each one of them!
(e.g. when a Stalin dies those 4 soldiers have to run to the North, I place a trigger with the condition "not (alive Stalin)" and in the "on activation" field I want a script that gives a command to those 4 soldiers. Note that those soldiers arent in the same group).
I've looked in the faq and read some tutorials (btw are you all like computer-wizards or what?) but pls explain to me in simple childish :) English. And if you can advice me a certain tutorial , dont hesitate.
And is there a way to find the coordinates of a certain spot on the map in the Editor? So i can tell my soldiers GoTo (145788,155774,66888)?
Thx.
-
And is there a way to find the coordinates of a certain spot on the map in the Editor? So i can tell my soldiers GoTo (145788,155774,66888)?
Just look at the perivous post by 456820 "running away" If futher help is needed let me know but I'm sure if follow the link all the way out, it should answer the Question.
-
If you want the four soldiers to join into one group either use join/join&lead waypoints or a join command.
-
To have units join some one:
[man,dude,guy] join Homie
Also the easiest way to find a position is to just put a game logic there then do guy domove getpos logic.
Or you can set down a gamelogic then look in the mission.sqm file and find its position OR you can put down an object then do
hint format["%1 %2",getpos Logic select 0, getpos logic select 1]
The format command may be a little off.
-
Thx for the replies! It works now!! I did not want to use the join/join and lead waypoints because you have to do it for every seperate unit and that makes the mission in the editor "unreadable".
I just have one more (newbie) question: i can make my chopper land and get the crew out but when my chopper flies to his next waypoint, those dumb soldiers who just got out also walk to that waypoint!! Grrrrr! What to do , what to do?
Ah and macguba, you know I lost my flashpoint-CD and today i followed your advice and ordered a new copy for only 7.99 Euro. No Cracks for me ;D
I just hope it gets here before the end of the year :-\
-
It sounds like they are grouped with the helicopter. Try doing a
units join grpNull
instruction.
More usfully give one of the units a join grpNull instruction and then get the rest to join him.
Do you mean the crew?
-
Ah and macguba, you know I lost my flashpoint-CD and today i followed your advice and ordered a new copy for only 7.99 Euro. No Cracks for me
:thumbsup: