DivineTimes Posted February 2, 2017 Report Share Posted February 2, 2017 does anyone know how i could turn this command ----if (local vehicle player) then { vehicle player setAmmo [currentWeapon vehicle player, 500]; ---- into a script that would use the scroll menu to rearm? Link to comment
Notey Posted February 2, 2017 Report Share Posted February 2, 2017 3 minutes ago, DivineTimes(casper) said: does anyone know how i could turn this command ----if (local vehicle player) then { vehicle player setAmmo [currentWeapon vehicle player, 500]; ---- into a script that would use the scroll menu to rearm? @Paratus @bamf Fresh likes this Link to comment
Notey Posted February 2, 2017 Report Share Posted February 2, 2017 Just now, Gnashes said: Not something to message a Dev about, seriously..... player addAction["Reload Vehicle Ammo",{(_this select 3) setVehicleAmmo 1},vehicle player,-1,false,false,"",'!(isNull objectParent player) && ((gunner vehicle player) == player)']; I freehanded that, so it may work, it may not. Sorry im mental when it comes to scripting.. im just trying to help Link to comment
FuzzyPanda Posted February 2, 2017 Report Share Posted February 2, 2017 21 minutes ago, Gnashes said: Not something to message a Dev about, seriously..... player addAction["Reload Vehicle Ammo",{(_this select 3) setVehicleAmmo 1},vehicle player,-1,false,false,"",'!(isNull objectParent player) && ((gunner vehicle player) == player)']; I freehanded that, so it may work, it may not. it works, just had to take out 1 " player addAction["Reload Vehicle Ammo",{(_this select 3) setVehicleAmmo 1},vehicle player,-1,false,false,",'!(isNull objectParent player) && ((gunner vehicle player) == player)']; Link to comment
GraduateArc8298 Posted February 2, 2017 Report Share Posted February 2, 2017 1 hour ago, iNotey said: Sorry im mental when it comes to scripting.. im just trying to help Pilot Josh likes this Link to comment
DivineTimes Posted February 2, 2017 Author Report Share Posted February 2, 2017 awesome guys thanks Link to comment
DivineTimes Posted February 2, 2017 Author Report Share Posted February 2, 2017 @FuzzyPanda @Gnashes i ran player addAction["Reload Vehicle Ammo",{(_this select 3) setVehicleAmmo 1},vehicle player,-1,false,false,",'!(isNull objectParent player) && ((gunner vehicle player) == player)']; i ran in debug menu tried sever exe glob and local did not work am i doing something wrong? im trying to get it working for me and my friend Link to comment
DivineTimes Posted February 2, 2017 Author Report Share Posted February 2, 2017 (edited) Just now, Gnashes said: Are you scrolling while in the gunner position of a vehicle? yeah is it due to maybe its because i tried in a jet? ive also tried a tank too https://gyazo.com/32970acac3231b3abd5e4ca9d19a3c4b Edited February 2, 2017 by DivineTimes(casper) Link to comment
DivineTimes Posted February 2, 2017 Author Report Share Posted February 2, 2017 Just now, Gnashes said: That would be correct. player addAction["Reload Vehicle Ammo",{(_this select 3) setVehicleAmmo 1},vehicle player,-1,false,false,",'!(isNull objectParent player) && (((gunner vehicle player) == player) || ((vehicle player turretUnit -1) == player))']; That might work. yeah im not getting anything i was wondering maybe if it was my mission or something so i tried just running player addAction ["A Useless Action", {}]; and that seemed to work and when i run if (local vehicle player) then { vehicle player setAmmo [currentWeapon vehicle player, 5009]; }; that still reloads the jet so im not quite sure. what im doing wrong or whats wrong https://gyazo.com/abf597731bff2b193bc5937af606c9f Link to comment
DivineTimes Posted February 3, 2017 Author Report Share Posted February 3, 2017 IF Anyone has any ideas feel free to help Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now