Jump to content
Sign in to follow this  
Grinher1988

Messing up script?

Recommended Posts

unassignVehicle takes unit as argument and unassigns it from vehicle it is currently assigned to, check biki. Also _unitdriver _x is pretty strange combination.

Edited by Killzone_Kid

Share this post


Link to post
Share on other sites

Now we'll never know.

The reason community forums exist is so that we can all learn, now and in the future, many aspects of the game.

If someone else made the same mistake you did, they had a ready made solution right there, but you denied them the answer.

Not good form, old chap. :)

Share this post


Link to post
Share on other sites

Well, the "solution" was incorrect after turning on -showScriptErrors. I keep getting a generic expression error but not sure how to solve it.

while { ({_x distance _opDropZone < 100}forEach units _opGroup) } then
{
[color="#FF0000"]hint "WORKED";
deleteVehicle (_opVehicle);
sleep 0.5; [/color]
};

While all group members are close enough to the dropzone(invsibile helipad) then {//code};

Share this post


Link to post
Share on other sites

The two most common reasons for the "Generic error in expression" error, from what I've found, are caused by:

1. Trying to use suspension in a non-scheduled environment (ie. event handlers, editor init's)

2. Selecting an array element that is out-of-range.

Where is the (#) symbol located in the resulting error box? A picture would be useful here.

Also, take this:

while {{_x distance _opDropZone < 100} count units _opGroup == count units _opGroup} do

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×