Maffegozer Posted April 12, 2011 Report Share Posted April 12, 2011 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? Quote Link to comment Share on other sites More sharing options...
Texas_DPS Posted April 12, 2011 Report Share Posted April 12, 2011 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. Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted April 13, 2011 Author Report Share Posted April 13, 2011 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. Quote Link to comment Share on other sites More sharing options...
Texas_DPS Posted April 13, 2011 Report Share Posted April 13, 2011 you might want to point that vo to another const char than vo_usar2. there is a vo named usar2 and it might confuse it maybe Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted April 14, 2011 Author Report Share Posted April 14, 2011 you might want to point that vo to another const char than vo_usar2. there is a vo named usar2 and it might confuse it maybeHmm, I kinda solved the problem.Instead of DUMMY_CALLCREW, i mistyped and has DUMMY,CALLCREWFixed.Lock this. Quote Link to comment Share on other sites More sharing options...