MrZ
Member-
Content Count
25 -
Joined
-
Last visited
Never -
Medals
Everything posted by MrZ
-
How to know when player has detected certain unit?
MrZ posted a topic in OFP : MISSION EDITING & SCRIPTING
I'm doing a recce mission with an OH-58. But how does a player detect a certain unit? -
Since you know what time the mission starts at you could simply set the wait time in the conditional of a waypoint. That would make the unit wait the set number of seconds before proceeding
-
Is it possible to use setPos on a trigger?
-
Sorry, I should have been more clear. What I meant was whether it is possible to use triggerName setPos[different position]
-
I have a script simulating the tailrotor being shot out on a blackhawk which sends it into a spin. When it finally lands, miraculously , in one piece the passengers jump out and start running away from them. Then I would like to place a trigger checking if the area around the chopper is free of people before blowing it up. How do I do this? In the script I've tried checking a variable set in the trigger and I've tried giving the trigger as an argument and checking for true/false on that. Doesn't work. How do I use trigger etc variables in scripts?
-
So to set a variable that can be read by the trigger I just put variablename = true in the script?
-
A unit is supposed to be shown a normal Move waypoint and move towards it until russians attack at which point the unit should be diverted towards a Search & Destroy where the reds are. How do I do this?
-
So that's what SWITCH is for! I always wondered, he. Cheers!
-
I'm using an Empty/Sounds/Alarm unit but I'm wondering how I turn the alarm on and off. Anyone know how?
-
OMG, thank you soooooo much!!! That worked like a charm!!!
-
How do I make a condition that returns true when a chopper reaches a certain height?? I've tried using getPos unitName select 2 == desiredHeight but it never fires! Pleeeeease help!!!
-
I know there is a LIGHTOFF command for action, but I can not seem to get it to work. How do I turn off the lights of truck??? And would someone PLEASE publish some kind of proper documentation for the action command, not just anb example for 1/50th of all commands. Please! I'm going nuts trying to get the damn action to work!!!
-
Found it! I thought you used [index] for arrays, not select
-
I have a waypoint where a chopper is supposed to land and then for an Effect to happen. I'm guessing I should use getPos for the height/y-axis, but how do I do this?
-
How do i put empty objects on top of another?
MrZ posted a topic in OFP : MISSION EDITING & SCRIPTING
How do I put a laptop on top of a table? -
Found it! It's the 'move' command. Slightly non-intuitive, but hey...
-
How do I create a waypoint dynamically while the game is running? Or, alternatively, how do I make it so I can activate a waypoint #1 while moving towards #2 and therefore be redirected towards #1? This was done by BIS in the original campaign, so it has to be possible to do this somehow
-
You set the waypoint to 'Visible in Cadet mode' or 'Always visible'
-
Doh! That was pretty obvious, I guess...
-
How do I set the Probability of presence for an entire squad so that either the whole squad is created or no members att all are created?
-
Waypoint and trigger help please
MrZ replied to Chuckie's topic in OFP : MISSION EDITING & SCRIPTING
You could set a variable to true in the On Activation of the Unit A waypoint after which you want Unit B to continue moving. Then you write the same variable name in Condition for Unit Bs waypoint where you want it to wait for A. Or you could synchronize A and B waypoints. I'm still not 100% about how synchronizing works (I've had some strange results) but it's supposed to be possible that way -
Two Apaches are supposed to cover a Blackhawk during a Black Op insertion. Unfortunately, since they are two separate groups, the never give the impression of being on the same mission since one group flies far ahead and then that group stops and the other one takes the lead. Is there someway of doing a synchronization btw the two groups? Maybe joining the Blackhawk to the Apaches and then unjoining them once it's time for the Blackhawk to land? If so, then how do I give separate waypoints for the Blackhawk to follow once it disbands from the Apaches? Thanks
-
How do I add a loaded weapon to an AI controlled character? Or do I have to tell him to reload as an init? Also, how do I add several magazines to a weapon without having to use addMagazine for each magazine? And does anyone know what the params are for 'action'?
-
In the scripting reference sometimes an action is supposed to be specified. Where can I find a complete list of these?
-
How do I place and detonate satchels, pipe bombs etc? I'm not talking about getting a unit to place it but rather how to place it like a separate object on the map.