Author Topic: Arma 2 scripting  (Read 2217 times)

0 Members and 1 Guest are viewing this topic.

Laxbrousa

  • Intentional Cheater
  • **
  • Posts: 40
  • Lax For Life
    • View Profile
Arma 2 scripting
« on: June 12, 2012, 03:39:52 am »
so im new and need help with scripting stuff cuz i want to get better at modding  :icon_biggrin2 rather than just mooch of others and never figuring out why this stuff is typed in the way that it is. i just need help with scripts for spawning basic stuff (Cars, Planes, Ammo) how would i form these.
I just need help getting started thanks you guys and please help MrMedic! thanks!









Thank you  

darkrounge

  • Online Villain
  • ***
  • Posts: 166
    • View Profile
Re: Arma 2 scripting
« Reply #1 on: June 12, 2012, 03:47:18 am »
Hey.
Try "mooching" of others and experimenting with the code yourself.
Go into the downloads section, download some mod-apps open the scripts up and try to edit them yourself.

Sooner or later, you'll learn how to do certain stuff, leading onto new stuff.
Best advice is to learn from others, by reading + experimenting.

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: Arma 2 scripting
« Reply #2 on: June 12, 2012, 03:58:20 am »
I agree with him ^ 100%. Read, learn, experiment, BINGO !!, yes you can do this shit man !   :icon_thumbsup

Showy

  • Relentless Teamkiller
  • **
  • Posts: 53
    • View Profile
Re: Arma 2 scripting
« Reply #3 on: June 12, 2012, 04:16:06 am »

Laxbrousa

  • Intentional Cheater
  • **
  • Posts: 40
  • Lax For Life
    • View Profile
Re: Arma 2 scripting
« Reply #4 on: June 12, 2012, 04:16:50 am »
Hey.
Try "mooching" of others and experimenting with the code yourself.
Go into the downloads section, download some mod-apps open the scripts up and try to edit them yourself.

Sooner or later, you'll learn how to do certain stuff, leading onto new stuff.
Best advice is to learn from others, by reading + experimenting.

Thanks but can you give me an example of a vehicle spawn with a vehicle in the code in stead of somthing like put vehicle here thanks  :icon_biggrin2 :icon_biggrin2 :icon_biggrin2

johnbowa

  • Intentional Cheater
  • **
  • Posts: 29
    • View Profile
Re: Arma 2 scripting
« Reply #5 on: June 12, 2012, 06:19:15 am »
Thanks but can you give me an example of a vehicle spawn with a vehicle in the code in stead of somthing like put vehicle here thanks  :icon_biggrin2 :icon_biggrin2 :icon_biggrin2

So really you just want a vehicle spawn code, and don't want to learn.

I'll save you the humiliation of MrMedic:
1. Search
2. Download Section (I'm positive there are over 20 different types of vehicle spawn codes in there)


Here is a vehicle script that's detected. On Dayz, anyway.
Code: [Select]
"VEHICLEHERE" createVehicle (position player);

Just a hint, dayz and battleye blacklist words in scripts (i think). So if you change that script just a tiny bit, I'm sure it will work again.

Or you could just use their code. That works too.
"\dayz_code\compile\local_createObj.sqf"

leebeasley

  • Online Villain
  • ***
  • Posts: 115
  • Nyaaa!
    • View Profile
Re: Arma 2 scripting
« Reply #6 on: June 12, 2012, 06:22:11 am »
Thanks but can you give me an example of a vehicle spawn with a vehicle in the code in stead of somthing like put vehicle here thanks  :icon_biggrin2 :icon_biggrin2 :icon_biggrin2

So really you just want a vehicle spawn code, and don't want to learn.

I'll save you the humiliation of MrMedic:
1. Search
2. Download Section (I'm positive there are over 20 different types of vehicle spawn codes in there)

I'll give you a piece of candy if you can find a code that doesn't explode and post it here.

As for you Laxbrousa, here's a code to spawn a vehicle (although it explodes if you get into it)

Code: [Select]
_location = (position player);
_className = "UH1H_TK_GUE_EP1";
_vehi = createVehicle [_className, _location, [], 0, "CAN_COLLIDE"];
_vehi setVariable ["ObjectID", 1557, true];
_vehi setdammage 0;
_vehi setfuel 1;
dayzSetFuel = [_vehi,1];
dayzSetFuel spawn "\z\addons\dayz_code\compile\local_setFuel.sqf";

"dayz_serverObjectMonitor" addPublicVariableEventHandler {dayz_serverObjectMonitor = dayz_safety};
"dayzPublishObj" addPublicVariableEventHandler {(_this select 1) call server_publishObj};

Second line is where you put the vehicle you want.

_className = "UH1H_TK_GUE_EP1";
I cut corners while running laps in gym class because I'm a fearless bastard.

johnbowa

  • Intentional Cheater
  • **
  • Posts: 29
    • View Profile
Re: Arma 2 scripting
« Reply #7 on: June 12, 2012, 06:25:59 am »
I'm working on getting one. Don't hold your breath, as I'm still learning.
Also, nobody will post a working one anyway, as it will get blacklisted, and not work.

darkrounge

  • Online Villain
  • ***
  • Posts: 166
    • View Profile
Re: Arma 2 scripting
« Reply #8 on: June 12, 2012, 06:31:26 am »
I'm working on getting one. Don't hold your breath, as I'm still learning.
Also, nobody will post a working one anyway, as it will get blacklisted, and not work.

It's been posted 1.9bn times.
Check the forum :)

leebeasley

  • Online Villain
  • ***
  • Posts: 115
  • Nyaaa!
    • View Profile
Re: Arma 2 scripting
« Reply #9 on: June 12, 2012, 06:37:23 am »
I'm working on getting one. Don't hold your breath, as I'm still learning.
Also, nobody will post a working one anyway, as it will get blacklisted, and not work.

It's been posted 1.9bn times.
Check the forum :)

I search "Vehicle" in the search bar and come up with 8 pages of results. I went through them and have yet to find a non-exploding script.
Perhaps you would like to post a quote or link? Thanks.
God forbid, maybe even the script itself?
I cut corners while running laps in gym class because I'm a fearless bastard.

darkrounge

  • Online Villain
  • ***
  • Posts: 166
    • View Profile
Re: Arma 2 scripting
« Reply #10 on: June 12, 2012, 06:50:35 am »
It's in either the first page or second page of the armed assault 2 forum.
Check through the categories.

leebeasley

  • Online Villain
  • ***
  • Posts: 115
  • Nyaaa!
    • View Profile
Re: Arma 2 scripting
« Reply #11 on: June 12, 2012, 07:04:08 am »
It's in either the first page or second page of the armed assault 2 forum.
Check through the categories.

Just went through. All I found were troves of pictures posted by Medic and Niel showing off their vehicles.  :icon_razz2
Someone please PM me what's wrong with the script I'm using!
I cut corners while running laps in gym class because I'm a fearless bastard.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: Arma 2 scripting
« Reply #12 on: June 12, 2012, 01:16:32 pm »
It's in either the first page or second page of the armed assault 2 forum.
Check through the categories.

Just went through. All I found were troves of pictures posted by Medic and Niel showing off their vehicles.  :icon_razz2
Someone please PM me what's wrong with the script I'm using!

Booogie wonderlaaaand...
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

Laxbrousa

  • Intentional Cheater
  • **
  • Posts: 40
  • Lax For Life
    • View Profile
Re: Arma 2 scripting
« Reply #13 on: June 13, 2012, 01:20:29 am »
Thanks but can you give me an example of a vehicle spawn with a vehicle in the code in stead of somthing like put vehicle here thanks  :icon_biggrin2 :icon_biggrin2 :icon_biggrin2

So really you just want a vehicle spawn code, and don't want to learn.

I'll save you the humiliation of MrMedic:
1. Search
2. Download Section (I'm positive there are over 20 different types of vehicle spawn codes in there)


Here is a vehicle script that's detected. On Dayz, anyway.
Code: [Select]
"VEHICLEHERE" createVehicle (position player);

Just a hint, dayz and battleye blacklist words in scripts (i think). So if you change that script just a tiny bit, I'm sure it will work again.

Or you could just use their code. That works too.
"\dayz_code\compile\local_createObj.sqf"


I mean no..... i do want to learn more from you guys (thanks by the way) but that is one of the main things im trying to do

ZOldDude

  • The Unknown Rank!
  • Administrator
  • MasstKer
  • *
  • Posts: 20874
  • Old School TKC
    • View Profile
    • Admin
Re: Arma 2 scripting
« Reply #14 on: June 15, 2012, 07:07:23 am »

*While we crash and burn, small, low tech, agrarian societies such as the Hmong in the mountains of Laos will continue on without so much as blinking an eye.*