OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hartza on 20 Aug 2002, 17:30:31
-
How do I create antipersonal mine with out using any objects ?
I saw something witch uses camcreate command ...
How to use it ? ???
-
Without any addons.
Make a trigger with area whatever you want. Make it to detect any side you want.
In the activation field put;
grenade="HandGrenade" camcreate (Getpos This)
Now when the trigger is activated, a grende will be created and blow you up. Note this type of mine takes out about 3 - 4 members of a squad in wedge formation.
-
Bah! Icarus beat me to it so I had to delete mine :(
-
If you want a bigger one use a pipebomb but with "this setdammage 1".
-
Hey Plage what's the difference between a pipe bomb and a satchel charge? I've never seen a soldier lay of throw a pipe bomb. Or is a pipe bomb the grenade which can be shot from the under-extension of an m16?
-
I think it's the same but in the game it's called "pipebomb"!
The "pipebomb" is that explosiv a SpecOps or Speznaz carries with him.
-
Thanks Icarus !
But, if I make it to detected by any will it explode if plane or chopper is flying over it ???
If so, can I define that it is exploded only by ground forces ...
-
just put in da condition field
"Land" count thislist > 0
wil make only land units activate it
LCD OUT
-
Roger that !
I will test it today
Thanks guys :thumbsup:
-
It works, basicly ...
But I cannot make this "only land unit activates" working: "Land" count thislist > 0
Mine wount explode. If I replaced it with: this ,BOOOM!
And how do I use this this setdammage 1 thing ?
HandGrenade won't explode, actually
only things that seems to explode are shell75,105,120,125
???
-
.... stupid me ..... :-[
Handgrenades game name is grenade and it explodes OK.
It seems to be most realistic one explode.
But there is still that "only land unit activates" thing ...
-
could you use the distance command instead of a trigger radius? Or does the distance exclude height limits like the triggers?
-
DONE :cheers:
This is how it works.
Trigger activated by anyone
Radius: 2-3m ( or desired )
Condition: "Land" counttype thislist > 0
Activation: mine="grenade" camcreate getPos player
Now, any land unit detonates mine, but non air unit.
Thank guys, for helping me !
-
:'( :'( :'( :'(
It not working right ...
I mean mines are exploding, but in wrong places ...
I have to use Game logic with this ...
create game logic and name it, like g1
chance activation:Activation: mine="grenade" camcreate getPos g1
put this gamelogic on top of that detonation trigger or any place where you want that explosion happening.
if you make several mines with copy/paste, you have to change that g1 to g1_1, g1_2, etc.
this is working version, but takes more time to do ...
-
Welcome to the new forums guys,
Hartza, try something like this:
Trigger
Radius: about the size of a mine
Condition: anyone present
Condition field: "Land" counttype thislist > 0
OnActivation: boom = "grenade" camcreate getpos (thislist select 0)
That will create your grenade at the position of the first unit (and generally the only unit) to enter your trigger's radius.
The way you were doing it previously would always kill the player (using getpos player), no matter which unit trips the trigger
-
Hi Sui !
Jep I noticed that little "side effect" ;D ...
Thats why I was using that GameLocig thing, but it generaters much lot more job if you make things like minefield ... :(
I have to try that thislist select 0 thing ...
Thanks !
-
Sui,
that OnActivation: boom = "grenade" camcreate getpos (thislist select 0)
seems to work perfectly :cheers:
Now I can push that "problem solved" Button
:thumbsup: