IPB


Welcome Guest ( Log In | Register )

 Forum Rules ArmedAssault.info Forum Rules
 
Reply to this topicStart new topic
> Script Trouble
S.T.A.L.K.E.R.
post Dec 8 2012, 22:48
Post #1


New Member
*

Group: Members
Posts: 5
Joined: 8-December 12
Member No.: 9,922



Hey guys

Basically in one of my missions I tried following one of the tutorials on YouTube about IEDs and random spawning, but for some reason it doesn't work. Can anyone help?

Here is the script:

// An Array of ammunition from which to choose
_shellArray =
[
"B_30mm_HE"
"ARTY_Sh_81_HE"
"ARTY_Sh_120_HE"
// "Bo_GBU12_LGB" // Massive Explosion - Use at your own risk wink.gif
]
// Select random explosion type;
_shell = _shellarray call BIS_fnc_selectrandom;

// Spawn the selection
_explosion = _shell createvehicle position IED;

This post has been edited by S.T.A.L.K.E.R.: Dec 8 2012, 22:49
 
Quote Post
D@V£
post Dec 9 2012, 00:26
Post #2


Gee, I wish we had one of them doomsday machines.
Group Icon

Group: Moderators
Posts: 2,037
Joined: 13-November 06
From: Wales
Member No.: 155



Try using camcreate instead of createvehicle.


--------------------
The Rules - Nothing too complicated, follow these and we'll have no problems.
Moderation Feedback Thread - Tell everyone how much you hate me love me secretly fear that Mark is watching you while you sleep. secretly wish that Mark is watching you while you sleep.
Site Issues Thread - Complain about site issues here. We might even fix them!
Community Chatter Thread - Furthest Mud-sling gets a free subscription to "JdB Monthly".

QUOTE(Major Mike Shearer)
We can categorically state that we have not released man-eating badgers into the area.
QUOTE(Brace Belden)
A machine gun is like a woman, I donít understand it, Iím afraid of it, and one day Iíll accidentally be killed by one.
 
Quote Post
S.T.A.L.K.E.R.
post Dec 9 2012, 18:46
Post #3


New Member
*

Group: Members
Posts: 5
Joined: 8-December 12
Member No.: 9,922



I made a mistake...

I misread the file name which was 'IED.sqf.txt' so i've corrected that. The IED itself is spawning in the selected random locations but they aren't detonating when any BLUFOR pass them? I've now tried both 'createVehicle' and 'camcreate' but still no detonation
 
Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 18th July 2018 - 22:43