Jump to content
Maffegozer

Script Error

Recommended Posts

Hello,

I started editing the LA mod, and the first thing I did was add a VO called 'fsx_usar'.

I added the following lines to the firestationstart.script:

const char VO_USAR2[]          	= "fsx_usar";

and a bit further....

ActorList l19 = Game::GetActors(VO_USAR2);
for(int i=0; i < l19.GetNumActors(); i++)
{
Vector Usar2 = l19.GetActor(0)->GetPosition();
Vehicle m = Game::CreateVehicle(OBJ_USAR, UNNAMED);
m.EnableBlueLights(false);
m.SetPosition(Usar2);
m.UpdatePlacement();
m.SetMaxPassengers(4);
m.SetSpeed(9.0f);
m.PushActionExecuteCommand(ACTION_NEWLIST, DUMMY_CALLCREW, Caller, 6, false);
m.PushActionWait(ACTION_APPEND, 0.5f);
m.PushActionExecuteCommand(ACTION_APPEND, DUMMY_CALLCREW, Caller, 6, false);
}

I get the error (don't know it exactly): "Undefined DUMMY in current scope" (or something like that.)

When I press ignore, the vehicle is where I placed it, but no crew goes in it... This is obviously because of the error.

Anybody?

Link to comment
Share on other sites

could you post the whole script please(from rapidshare or something). from what i can see it seems like you are missing something but i cant get my fingers on it.

Hmm, I edited the script on my other computer (just as I did with the map). So I don't got the file here now, but I will post it when I get on my other pc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...