lifeliner4 Posted May 6, 2010 Report Share Posted May 6, 2010 Hi scripters!I've got a question about a script.In my mod, I've got 2 helicopters in the map, both Rescue Helicopters. (named the lifeliner1 and the lifeliner2)They've got a VO, with name, and those 2 got a name two.Nothing wrong with the alarmscript.I chanced some thing, so the helicopters won't drive like a car, but flies.But..When I press ParkAtBase.. I've got a big problem, called:Many scripters helped me.. But, without a result..But I know, there are some really good scripters, and they know the answer.. I hope..This is the alarmscript:http://plaatscode.be/139306/This is the parkingscript:http://plaatscode.be/139307/Thank you! Quote Link to comment Share on other sites More sharing options...
Guest Francis Posted May 6, 2010 Report Share Posted May 6, 2010 Line 281 and 282 of your parking script causes it. It seems that landingDirection, which is a global game variable, cannot be set. Rename it to something else. You also forgot the "landing" bool parameter in the PushActionFlyTo. Your code should look like that.lDirection = v.GetValidLandingAngle(&obje, parkpos);Caller->PushActionFlyTo(ACTION_NEWLIST, parkpos, true, lDirection);By the way, I dare you to indent your code next time. Quote Link to comment Share on other sites More sharing options...
lifeliner4 Posted May 7, 2010 Author Report Share Posted May 7, 2010 This is after I chanced the name IDirection, I thought, perhaps this is the answer.But, still that error.Script is like this now:http://plaatscode.be/139309/Thanks for your help btw, you're great! Quote Link to comment Share on other sites More sharing options...
Guest Francis Posted May 7, 2010 Report Share Posted May 7, 2010 This is after I chanced the name IDirection, I thought, perhaps this is the answer.But, still that error.Script is like this now:http://plaatscode.be/139309/Thanks for your help btw, you're great! Oops my bad, the real problem here is that you didn't declare it. On line 281, add "float" before your variable name.float VUmc = v.GetValidLandingAngle(&obje, parkpos); Quote Link to comment Share on other sites More sharing options...
lifeliner4 Posted May 7, 2010 Author Report Share Posted May 7, 2010 Wow, it works! Thank you so much! Watch it doing well! http://www.youtube.com/watch?v=7oSnWBsbgqE Quote Link to comment Share on other sites More sharing options...
Guest Francis Posted May 7, 2010 Report Share Posted May 7, 2010 I'm glad it worked out. Quote Link to comment Share on other sites More sharing options...
cops Posted May 7, 2010 Report Share Posted May 7, 2010 man that's a great mod! will this a private mod or a public mod?or is this the already existing mod Quote Link to comment Share on other sites More sharing options...
Maffegozer Posted May 7, 2010 Report Share Posted May 7, 2010 It's a private mod.If i'm right I think it was based on NL mod Alpha 2.Lifeliner4, Correct me if i'm wrong! Quote Link to comment Share on other sites More sharing options...
cops Posted May 7, 2010 Report Share Posted May 7, 2010 It's a private mod.If i'm right I think it was based on NL mod Alpha 2.Lifeliner4, Correct me if i'm wrong!that's disappointed... but good luck than can you show us more things about the mod(but is there version of it) Quote Link to comment Share on other sites More sharing options...