Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

NaveReyem

Member
  • Content Count

    47
  • Joined

  • Last visited

  • Medals

Everything posted by NaveReyem

  1. NaveReyem

    Nearest Enemy?

    ive searches for 4 days, ive found many scripts but i cant decipher them, too many variables involved... ive not seen any Tuts on it either
  2. try _player = _this select 0 and make other player have _player
  3. yo snipman, this should work, ive respawned things before in the air, im not sure how you would get the vehicles to respawn up there, but here is code, put this in the INIT file of youre mission. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #AirSpawn @! alive Player @alive Player Player setpos [getpos Player select 0, getpos Player select 1, (getpos Player select 2) +515] goto "AirSpawn" the 515 is the height, you can change it to anything, but something wierd may happen is the ground underneath the water under the carrier is unlevel, or it may just elevate from "sea" level, i dont remember lol.... test it.... you could also put in things like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #airholdloop @! alive Player @alive Player Player setpos [getpos Player select 0, getpos Player select 1, (getpos Player select 2) +515] RemoveAllWeapons Player Player addmagazine "G36AMag" Player addmagazine "G36AMag" Player addmagazine "G36AMag" Player addmagazine "G36AMag" Player addweapon "G36A" Player addweapon "binocular" Player selectweapon "G36A" goto "airholdloop" to make the guy spawn with a g36 and a binocular, with g36 selected as main weapon... mess with it...
  4. NaveReyem

    Event Handler Help plz

    BTW westman1 is NOT supposed to be the Player, he is supposed to be an AI, there would also be oter AI named eastman1, eastmand2 and such, so i need to make it work for both... the PLAYER would be resistance side, with NOBODy friendly to him..
  5. ok, here is the situation ive got a problem with something im making, its a script to tell when the player kills an AI, then give the player some money and fame or whatever. but the script also gives money to the player when the AI gets killed by enemy AI and things, how would i get around this?? example <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _victim = _this select 0 _killer =_this select 1 _money = _this select 2 _fame = _this select 3 removeallweapons _victim ?(side _victim == East) : goto "Eastkilled" ?(side _victim == West) : goto "Westkilled" #Eastkilled ?(side _killer == West) : goto "exit" eastFame = eastFame - _fame; westFame = westFame + _fame; Money = Money + Random(_money) Hint format ["---------------Stats--------------\n\nMoney: $%1\n\nWestFame: %2\n\nEastFame: %3",money,westfame,eastfame] goto "exit" #Westkilled ?(side _killer == East) : goto "exit" westFame = westFame - _fame; eastFame = eastFame + _fame; Money = Money + Random(_money) Hint format ["---------------Stats--------------\n\nMoney: $%1\n\nWestFame: %2\n\nEastFame: %3",money,westfame,eastfame] goto "exit" #exit ~5 deletevehicle _victim Exit well it works good, but i need to be able to goto "exit" before it gives him money if the player is not the one that killed the AI that this script is for.. you see? because ?(side _killer == East) : goto "exit" didnt work, i dont think the event handler is telling the script who is the killer, any ideas why? because im thinkin this should work, but it doesnt <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #Eastkilled ?(_victim) : goto "exit" eastFame = eastFame - _fame; westFame = westFame + _fame; Money = Money + Random(_money) Hint format ["---------------Stats--------------\n\nMoney: $%1\n\nWestFame: %2\n\nEastFame: %3",money,westfame,eastfame] goto "exit" ok, where east is killed and there is ?(_victim) : goto "exit" i need to to be able to tell if the killer was an AI or the player you see... ?(_killer == player) : goto "exit" didnt work either.... help plz. BTW in the AI that i kill the in the init it says <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> westman1 addEventHandler ["killed",{[westman1,this,20,5] exec "apkiller.sqs"}] where THIS is in there, i dont know what to put to detect who is the killer.....also, i have a feelign im giong about it the hard way help plz
  6. NaveReyem

    Event Handler Help plz

    lol, thats gay, now that i think about it i really dont need to have money and fame in the event handler, it a random number generated up to 20 for money and 5 for fame, i could just do all of it in the script. OR does anyone know if its possible to run 2 eventhandlers on one person, there could be another like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> westman1 addEventHandler ["killed",{_this exec "apkiller.sqs"}]; westman1 addEventHandler ["killed",{20,5 exec "apkillerfamemoney.sqs"}] or would this be too hard on the system, running two killed scripts at the same time?
  7. NaveReyem

    Event Handler Help plz

    thanks guys, ill have to try all these, good ideas, ive not tried to make the KILLER this select 0, some people on ofpec said it is built in as this select 1, but it may not work with other parameters in there like money and fame.... but i tried it and it didnt work, so all these may  i like ur last idea Patton
  8. NaveReyem

    Event Handler Help plz

    Hey no Reply, Thanx guys!
  9. ty klavan, it worked
  10. Alright guys, this would be me first post on here, but im not a newb. anyways. Ive never figured out how to put .paas or jpgs into the missions i make.... i could use some help
  11. I did, ive tried and it had a bunch to do with RST stuff and things and a lot, but i copied the only thing i could see to do with a picture and it crashed my OFP
  12. nono, i know how to do that, i mean make the pictures show up on a camera script.
  13. NaveReyem

    Sell ARAS online

    4 More Flashpoint!ArA....
  14. NaveReyem

    Armed Assault - should the name be changed?

    The Third War Return To War New War something?? what is the new campaign name??
×