Jump to content

Shark111

Member
  • Content Count

    30
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Shark111

  • Rank
    Private First Class
  1. Shark111

    Gamelogics

    Don't know, maybe better uses are possible, bat I use them as rapidly moveable targets for "ShootToNoOne" animations, centres of areas which act in some way if someone gets close, waypoints to move units or groups to and so on... till now I only used those custom GLogics of the game editor
  2. Shark111

    Mix your perfect game

    Falcon 4 of course... did you notice how funny it is when you can do in multiplayer everything you can do in singleplayer? (I mean dynamic campaigns) yes, F4 is the only Flight Sim I know which does not limit the MP in a never ending clash of infinite aircrafts in an empty scenario.
  3. Shark111

    Dealing with shells

    As already specified the command SetDammage doesn't affect the shells (I had tried it weeks ago, maybe I should have advised you before... sorry). The idea to make 2 shells collide looks fine. I'll try it as soon as possible. See you.
  4. Hi. I need some HEAT to explode before they actually reach the target. Previously I camCreated them (with their variable names), but each attempt to make them detonate before hitting the ground was failure. How can I do this? Thx
  5. Shark111

    About nearestobject

    Yes, I tried the script suggested by RED, and it works, but it takes a lot of time to individuate a soldier at about 5mt away from the player’s position. Is there something in the code that could be faster or is NearestObject a command which significantly slows down the execution? My code was this: _i = 0 #search ;starts searching from the player's position, then will ;shift along player’s direction _xc = GetPos Player Select 0 _yc = GetPos Player Select 1 _dir = GetDir Player _pos = [_xc + _i * (Cos _dir), _yc + _i * (Sin _dir), 0] _near = NearestObject _pos _i = _i + 0.1 ~0.1 ;executes some tests to establish wether _nearest is an ;enemy healthy soldier or not. If a test fails, searches ;again from another position ?(_near == Player) : GoTo "search" ?(Side (_near) == Side (Player)) : GoTo "search" ?(!(CanStand _near)) : GoTo "search" ;if there's nothing interesting within 20.1mt. stops the ;script ?(_i > 20) : GoTo "end" ;this should give the debug output TitleText [Format ["Found: %1", _near], "plain down"] [_near] Exec "surrender.sqs" #end Exit Would it be faster if the range from player’s position is incremented by 1mt instead of 0.1 each time? I hope so… …continues ...somewhere a shark hopes to meet ya...
  6. Now it’s time for nearestobject. How do I use this? I want to put in a variable the object of a specific type that is nearest to the player. My scripts did not work, here’s what I used: _near = nearestobject [player, “manâ€] _near = nearestobject [player, man] _near = nearestobject [getpos player, “manâ€] _near = nearestobject [getpos player, man] These all gave ObjNull as value of _near. _near = nearestobject getpos(player) This, instead, gave always and only West Bravo Black: 1, i.e. the player’s unit. What have I to do, if I want _near to be the nearest man, for example, or Scud Launcher, or any other accident?!? Thx ...somewhere a shark hopes to meet ya...
  7. Shark111

    Question about actions

    Tried. It works . No more to discuss about this topic. Thanks.
  8. Shark111

    Question about actions

    Thx I'll try it as soon as I can.
  9. First mission finally completed and released. Now I have a question, for the second, about using custom actions with AI units. I explain: it’s dark, and you must find some Scud launchers located somewhere in the island, without being spotted by the enemy, elsewise they will start a massive ballistic attack. It would be hard to do, if the Scud launchers had the lights off! But every time a soldier gets in one of them, he turns lights on. I tried scripting this: _scuddriver action [“lightoffâ€] where _scuddriver refers, obviously, to the scud driver. Did this too: _scuddriver action [“lightoffâ€, vehicle(_scuddriver)] both without result. I think my tutorial about action strings is not very reliable. Could someone tell me what is wrong or another way to turn off those lights? Thx. ...somewhere a shark hopes to meet ya...
  10. Shark111

    Ai thread

    A new stuff about AI units. Would it be possible to see them surrender if there is no chance to win and/or survive (for example I scripted something similar which makes soldiers lay down the weapons if in front of a tank and no means to blow it up ) . I don't like shooting on people that can do nothing to stop me. Hope not to be alone... Thx.
  11. Shark111

    Vehicle movement

    Something more about tanks. Let it be bug, but in an M113 who gives the movement orders if the gunner does not?
  12. Shark111

    Vehicle movement

    A little question about something noticed in different mission: why the vehicle's driver simply ignores any movement command given directly in the 3d world when it comes from the gunner (and there is no commander)? I've spotted this trouble on M113s (where gunner is commander) and in commanderless tanks. Thx for any interest. ... somewhere a shark hopes to meet ya...
  13. Shark111

    Music

    Did I understand? .wav working in OFP? Really?
  14. Shark111

    A bridge too far

    Try this: put a game logic in the bridge's position and when you want to blow it up (I mean the activation of a trigger for example): "Laserguidedbomb" camcreate getpos glogic This should give you the big explosion you want. Bye ...somewhere a shark hopes to meet ya...
  15. Check it out, if you want... Can anyone explain me how to link the debriefing of defeat to a Loose trigger. I tried this in the debriefing.htm: <hr> <br> <h2><p><a name="Debriefing:Loose"></a> ...Text I want to be shown... </p></h2> <br> but it just gave me the empty notepad. If someone notices something missing or wrong, please, give the right code I should put there to have the debriefing text related to a Loose trigger. For more informations about this problem (if you are interested) search for "victrory" and see "victory, defeat and somthing else...". I'm sorry for the new post, but this is my last problem before releasing the first mission. Please, PLEASE let's solve it now! ...somewhere a shark hopes to meet ya...
×