Script Trouble |
Script Trouble |
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 ] // 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 |
|
|
Dec 9 2012, 00:26
Post
#2
|
|
Gee, I wish we had one of them doomsday machines. 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 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. |
|
|
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 |
|
|
Lo-Fi Version | Time is now: 27th April 2024 - 01:51 |