Jump to content

Scripting doing my head in! :)


S.N.A.F.U.

Recommended Posts

Hi gang, 

 

I am trying to attach a VAS menu & a recruit AI to my vehicles.. It works on first spawn, but not on subsequent ones. I am pretty new to this & the syntax (& lack of sleep) Is getting the better of me. 

This is the Init I have on the MHQ right now.

 

veh = [this, 600, 30000, 0, True, FALSE, "nul = [this,""MHQ2"",5] execVM ""mark_unit.sqf"";"] execVM "vehicle.sqf"; nul = [this,"MHQ2",5] execVM "mark_unit.sqf"; this addAction["<t color='#ff1111'>Virtual Ammobox</t>", "VAS\open.sqf"];this addAction [("<t color=""#66FFFF"">" + ("Recruit Menu") +"</t>"), "FOCKRecruitAI\RecruitMenu.sqf",[],1,false,true];

I know I need to have the VAS & recruit in there before the Vehicle.SQF, but I am not sure how..

 

Any help would be appreciated.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Forum Statistics

    11.1k
    Total Topics
    66.5k
    Total Posts
×
×
  • Create New...