Jump to content
Sign in to follow this  
JacobJ

Creating a logic by script?

Recommended Posts

Hey there

I want to be able to switch the wounding system on and off in the parameters in the lobby. But how do I create a logic?

This is the classname (I think) of the logic "ACE_Wounds_Logic".

But there is no command like createLogic or something...

How would I do this?

I know how to make it come up in the parameters in the lobby, but not how to create the logic.

/Jacob

Share this post


Link to post
Share on other sites

_logicside=createCenter sideLogic;

_logicgroup=createGroup _logicside;

_logic=_logicgroup createUnit ["Logic",[0,0,0],[],0,"NONE"];

Share this post


Link to post
Share on other sites

Okay, and the "ACE_Wounds_Logic" part goes into the last line instead of "Logic" or have I not understood it?

---------- Post added at 23:28 ---------- Previous post was at 22:44 ----------

Hmm somehow the Ace wound system is already on as default, altho I dont have the module in the mission.

http://ace.dev-heaven.net/wagn/Wounding_System+notes

That says I have to put something into my description.ext, but I dont know what params select 10 should be instead of 10 and what to write in my init.sqf for making a On and Off choice.

Can you help me with this?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×