OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: gimplord on 06 Apr 2004, 09:43:35
-
Hi everyone,
Need some help here, Im working on an addon and it already has one Init.sqs, which sets the faces to a random choice of custom ones, but I also want to add ANOTHER init.sqs to add some other features- Do I need to create one, uber-complex init script? or is there a way to just add another? plz help!
-
ok its just like any other script excepted scripts have two " instead of one " but any way all you do is add a ; betwean the two scripts like this:
class EventHandlers
{
init = "if (alive (_this Select 0)) then {[_this select 0] exec ""\xplane\sqs\init.sqs""};[_this select 0] exec ""\xplane\sqs\door1.sqs"";"
i hope this helps
-
Cheers mate, can't believe I didnt think to try this earlier! ::)
-
no problem buddy