3 Commando Brigade

Realism. Tactics. Fun.

+ New Topic + Post Reply
2 posts in this topic
Posted: Wed Nov 13, 2013 11:40 am     Super secret spam barrier
Quote
Offline

Posts: 1412
Ribbons:
Service Medal (5) Donator (1)

Optimise your code


The Arma 3 dev posted this page, might be useful to some.

http://community.bistudio.com/wiki/Code_Optimisation

Image


Posted: Wed Nov 13, 2013 5:12 pm     Super secret spam barrier
Quote
Offline
Major
Major
Other duties:
Site Admin
Game Admin
Modder
Founder

Posts: 3774
Location: London, UK
Ribbons:
Service Medal (7)
Yeah I've read through this before, a very interesting read. Thanks for posting!

One thing to note that the wiki doesn't state:
myFunc = preprocessFileLineNumbers "myScript.sqf";

is the same as putting something as a function within a variable:
myFunc = {
   // Do something
};
 


The former just abstracts the function into a separate file. You can then call either one using:
[] call myFunc;

"To achieve great things, two things are needed; a plan, and not quite enough time." - Leonard Bernstein
3CB ops in a nutshell.

PC Specs


+ New Topic + Post Reply


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

phpBB © Forum Software
© 3 Commando Brigade Gaming Community
All images belong to their respective owners


3CB Modern design by Jamie Goodson
WysiBB