Jump to content

shlomo

Member
  • Content Count

    18
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About shlomo

  • Rank
    Private First Class
  1. Thx. cleanrock . However As I wrote, this was just an example. I'm looking for a generic solution - something like <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> substring("bla bla",1) ,or charAt(i) which helps a lot in programming .
  2. Hi. Is it possible to do some string manipulation in OFP ? Â Lets say I want to use just the player ID within his group (1-12) . When I use format["1",player] -> West Alpha Bravo :5 (shy) But I want to use only the "5". I've looked everywhere but havn't found a solution. However when I looked at the STRINGTABLE.CSV file I found <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> OH NO.... %1.1... IS DOWN! In the game we gets "OH NO.... 5... IS DOWN!" So it seems there is some ability to do there. Â Thx.
  3. Hello. Objects can be resize in a world creation. So you cna have the same rock / tree in variuos size and directions. I wonder could it be done in the mission editor or through script ? Thx.
  4. Hi. I tried to put my several scripts which I use in many missions into a pbo. I tried varius ways but it works only when I put it in the dta folder and call it "scripts.pbo" and replace the orginal scripts.pbo that was there. Can I put the scripts in another pbo ?
  5. shlomo

    Height limit

    Hi. The wrptool which is a greate tool states (in the manual) ofp covers heights up to 1472 meter. So the wrptool itself limits the height to this value (more then that become negative !). Does someone know if this bug is fixed in the 1.96 version. BIS - is it the limit ? Are you going to change it in the future ? Thx.
  6. I'm trying to create a simple mission where helo are all around you with parachuters. I tried to kill the parachuters in the air by shooting them with almost every weapon - still they get safe to the ground !!! I try to create an add-on subclassing parachuteEast with armor=1 still can't kill them !!! Please your help. Thx.
  7. I add a unit to my group using createunit. But in MP I found that I'm not respawn to that unit. I've created some sort of managment tool which records and replies the whole ga me in MP . However in order to control the tool I need to have a player. Most of the time I just sit a side . But sometimes my soldier is killed and I get out of the game and cann't replay. I tried to create a spare unit thats I'll be respwan to. This works fine in the editor. But if that unit is killed i'm in trubbels. So I would like to be able to add more units when needed and then respwan to them.
  8. shlomo

    Custom faces

    You should create an add on and put there couple of faces. Then you can use it for your own identity and for ai too.
  9. shlomo

    Setface to ai soldiers

    The only way I could make it is by making an addon for the faces. I'll add the code later on. However I would much prefer to do it in a mission folder.
  10. Hi all. On a real battle field soldiers get to know and recognized each other. Still this is not enough and in order to be able to recognized your units , tactical signs are used. For infantry it on the helmet or as an arm band, Veichle have it on there sides and at the rear. Does someone know how to have something like it in OFP ? I need to be able to control who has what sign .
  11. Hi. One can add his picture under users\face.jpg and then select it using "custom face" I also bean able to set  this face on AI soldliers using soldier setFace "custom" Howeve I can make it to have other faces !!!! I read that faces can be put in the mission folder and then can be used on the same way (soldier setFace "another" or soldier setFace "another.jpg") But it doesn't work ? Can I add faces without an addon ?? Â
  12. Hi All. I have some debriefing tool that let you play a mission when it ends. I collect lots of inforamtion during the game and then replay it. What i still miss is the ability to set every unit to the same mode ("UP"/"DOWN") it was at each moment - using setUnitMode() Does someone know hot to get this property ?
  13. Hi. I try to create some monitoring tool that will let the user to see what happened in the game when it all finish.(debriefing). I think it can be done if we can save the location of each player say every 10 seconds . However the problem is how to save this information to be later used. I thought about two options 1. Run a script that getPos for each player and save it to the disk . Here the problem is I don't know any function that write files to disk. 2. Save the game over and over (another process in the background change the name of the saved files) and then later on process those file. Does someone know the format of the save.fps file ? In any case at the end a new scenario should be created using the posiotions as a waypoint for each player.
  14. shlomo

    Creating and using other font

    I've found the font files and even their format. I also found that in the flashpoint.cfg I can set the language to English, French etc. In the commented config.cpp I found class CfgFonts { class Korean { TahomaB24 = hfont16; TahomaB36 = hfont16; TahomaB48 = hfont16; CourierNewB64 = hfont16; Garamond64 = hfont16; SteelfishB64 = hfont32; SteelfishB128 = hfont32_16; AudreysHandB48 = hfont16; AudreysHandI48 = hfont16; }; }; Does someone know how to put all together ?? Thx.
  15. shlomo

    Creating and using other font

    No it doesn't work. It display some weird text instead of the Hebrew . The fonts in the game are not those in the regular windows system. I looked at the data.pbo and found there couple of fonts. Thx.
×