victimchild
Member-
Content Count
36 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout victimchild
-
Rank
Private First Class
-
My thread of amateur questions. Pleas help me :)
victimchild replied to Joonas's topic in OFP : MISSION EDITING & SCRIPTING
Well, instead of using markers for your spawns why don't you use Game Logics? This would allow you to use the code: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nameofthing setpos (getpos nameofgamelogic) This would probably work. It does for me. I'll have to poke around a little with the editor to see about the chopper. You should be able to dig up a script for it, but it's beyond me to script that. Like you, I've just recently begun to use code myself in my missions. I'm still puzzling out arrays. EDIT: I found out that the choppers only fire on infantry and only with the machine gun, not the rockets. This might make it difficult if you wanted the chopper to fire on the town in general. I couldn't even get the chopper to fire on an empty tank. Same for the tanks. It's something I'll have to delve into later. Something you might try to add randomization without scripts is the placement radius of units. If you wanted to add a tank squad, but wanted to make it so that they would start anywhere in an area to the north of Le Moule you could make their placement radius a huge one covering the entire north of Le Moule. You could also add a probability that they would be there at all. Then give their waypoints a placement radius, and a probability percentage to them as well. After that you could even add times that they could spend at that waypoint to make it so that the would move immediately from that point or would wait 3 minutes. In the standard OFP editor there are so many ways you could randomize an attack that even the creator wouldn't know where it was coming from. Anyways, if you ever get your mission to a beta testing stage, or need more help with it, just send it to me and I'll be happy to help. -
My thread of amateur questions. Pleas help me :)
victimchild replied to Joonas's topic in OFP : MISSION EDITING & SCRIPTING
Ok, I've got some solutions. For the helo and the tank I believe that the Editor Upgrade comes with some invisible targets that could be used to have the tank and chopper shoot at them. Another alternative would be to setpos a few objects underground where you want the chopper to fire and just have it dofire on those. For the radio messages you can just use <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[West, "HQ"] sidechat "whateveryouwanttosay" This will only make PAPA_BEAR talk. Usually, if you just want a quick order-giving sequence it works. If you want to have other people saying stuff you'll have to learn how to create identities. Here's a link I think you have it right with the waypoint and trigger syncing. You don't have a problem with the actual teleport do you? You could just use the <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setpos getpos teleportlocation As for the waypoint afterwards you might try integrating the command <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nameofsquad lockWP true This would lock the WP at the current waypoint which could be at any place. Then, in the On Activation line of the trigger you put that command except false instead of true. Then, they continue onto the waypoint you may have placed around the teleportation point. With the random marker points you would have to do something in a script with the command "random" which is used to select a random number. DISCLAIMER: I am not experienced in the use of this. I only read a lot of scripts. If this is wrong please correct it and I will be grateful. You would have to put: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_var = random 4 ? _var = 1 then groupname setpos getmarkerpos teleportplace1 ? _var = 2 then groupname setpos getmarkerpos teleportplace2 ...and so on. This would give it a totally random number out of four, or however many markers you would want. You could even make this more complicated and add more of a chance that it would be at one position more than the other. Anyways, there's my piece. Hope it helps. Anymore questions and I would be glad you help. BTW, if you don't mind me asking, what kind of mission are you working on with all this. I could probably help you more if I knew what you were trying to achieve. -
The waypoint would have to be assigned directly to the player, and it would have to be on Always Show. It only shows when you do that (obviously).
-
Making a car drive when a squad has got in it
victimchild replied to erc's topic in OFP : MISSION EDITING & SCRIPTING
Instead of using the condition field just leave it as it is. Then, create a WP for the HMMVEE to move where you want it to wait for the Rangers. Then use the Syncronization button to attach the get in WP of the rangers to the move point you just created. Now the car should wait until the Rangers are in before it moves to it's next WP. -
Helicopter to fly away
victimchild replied to steven19916's topic in OFP : MISSION EDITING & SCRIPTING
Couldn't you just add another Move WP after the unload WP and have the heli just move to the other side of the island? Or are you using a script for the landing? -
Could someone please tell me where I might find a script that tracks if any of the players in an MP game have killed any Civs? I would like to have some penalty such as the resistance is no longer friendly towards them.
-
Thank you so much! It worked perfectly! Now I can start tearing apart the Campaigns and editing them to my will. Thanks again.
-
I find it funny that you say that because that's exactly what I do and it all works out great. What you wanna do is get into the tank first as gunner, then make one AI move in as Driver. Then you switch positions with him and you're driving and commanding. It's so much easier than the commanders position. I hate the way the AI drives.
-
I have no idea. I've never heard of it. But if you could send me A working PBO extractor I would be forever grateful. It's really hampering my learning to how BIS constructed their missions. I've downloaded Eliteness and it seems to extract the files ok, it just doesn't actually create them anywhere. When I look into the open window on Eliteness it shows a folder, but when I try to find that folder in Windows Explorer it's not there. Do you think that Vista might be causing this problem? This is really getting frustrating.
-
Can someone please give advice on a place to find a working version of unPBO or another extraction program because the 1.5 version I currently own doesn't function properly. It says that it is going to create a log file in the directory, however when I reach the directory there is no such thing. It shows the log file in the unPBO window, but it will not show it to me in the Windows Explorer. Any help would be greatly appreciated. Thanks.
-
sorry. mess up. just delete
-
This topic will be on terms used in all missions (hopefully). term:this used in:init lines only description: This is used to specify the selected unit or object. I use this in every one of my missions at least fifty times. It helps to not have to name every object and unit in the game. example: this setdammage 1
-
Velocity is bugging me out!
victimchild replied to victimchild's topic in OFP : MISSION EDITING & SCRIPTING
It gives me an error report saying that the first _v is a local var in a global var's space. Thanks for trying. -
Velocity is bugging me out!
victimchild replied to victimchild's topic in OFP : MISSION EDITING & SCRIPTING
I only want him to start out at five then plumet and pull out of it before impact. I know there is a script somthing like this to make it do that. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setvelocity [x,y,z] I want to know do I put numbers in the place of x, y, and z? thx -
I need to know the script to set the speed of somthing! Like if I am in a jet then I want to go 5 speed. (I will set the hight really high)HOW!?!