davewave
-
Content Count
3 -
Joined
-
Last visited
-
Medals
Posts posted by davewave
-
-
no offence, but that was the most unhelpful reply I've received on a forum.
I copied that code STRAIGHT from someone elses forum post in which several others confirmed the code to run properly.
Perhaps I didn't clarify enough.
I'm running ARMA 2 OA (I dont own ARMA 2 so I don't have the classes/objects from that game).
Please help me with the following:
1) The code needed to create a unit from thin air.
2) Somewhere I can find all the internal references to the many objects in the game that can be created.
---Edit---
And one other thing I need strong clarification on:
1) How do I find the NAME of a GROUP
2) How Can I create a group and add units to it.
3) Why don't I see group names/references in the mission.sqm anywhere?
And one more thing:
4) If the leader of that group (say a1) dies, and you create a unit as part of that group, how do you then get the new guys group ID/name?
5) The game only seems to allow me to create a unit and add it to an existing group, but the "createGroup" command does jack all.
This would probably do it.
Regards
David
-
Hi all,
I'm about to give up and I've trawled this site and tried different code and no success. I don't move on in complexity until i can get the simple things working:
in a file called spawn1.sqs:
_grp1 = createGroup west;
_man1 = _grp1 createUnit ["SoldierWB", getMarkerPos "base", [], 0, "CAN_COLLIDE"];
I exec this inside the game using the [] exec "spawn1.sqs" on "RADIO ALPHA".
I have a marker named "base"
Yet, no man/soldier appears! I'm racking my brain and I can't get this simplest of things to work. please help
Should be easy, not working: createUnit
in ARMA 2 & OA : ADDONS - Configs & Scripting
Posted
Ok, this time please read my post above and answer the questions.
Also, I've figured out that by adding a unit in the editor, i can then open up the mission.sqm file to find out that units unique code without the need for that website.
Please, how do I create a unit!! you still haven't answered me!
Ok look at this in my sqs file:
f1 = createGroup west;
"US_Soldier_EP1" createUnit [getMarkerPos "base", group f1];
whats wrong with this then ey?