OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: macguba on 20 Dec 2005, 13:04:58

Title: "New" commands
Post by: macguba on 20 Dec 2005, 13:04:58
The online comref currently does not have these commands, and it should.    We're going to add them.    However we need t know syntax, post examples and so on.   Can you help?


1.90  - New: MP: Added #debug checkfile command
1.90  - Added: functions isEngineOn, engineOn
1.88  - Added: Dedicated server command #debug (userInfo)
1.87  - Added: Dedicated server command #debug (console, totalSent, userSent)
1.86  - Added: function sideLogic


In particular we need help on sideLogic.   I don't think it's difficult.
Title: Re:"New" commands
Post by: Planck on 20 Dec 2005, 14:09:34
Doesn't sideLogic have two mates, sideFriendly and sideEnemy.

Other commands I know are in there somewhere:

cheatsEnabled
cameraOn


Planck
Title: Re:"New" commands
Post by: bdfy85 on 20 Dec 2005, 18:07:36
Quote
tank engineOn false
switch off the engine of tank
Quote
tank engineOn true
turn it on
Quote
isEngineOn tank
will return engine status - true/false
This commands are listed in russian comref by Denvdjm:D I used them - syntax is all right. As about  sideLogic I found the following (translation):
sideLogic :
Returns "Side" value that  identifies logic. With this command you can whether object is logic or not
Quote
side myLogic == sideLogic

Quote
cameraOn
very interesting... Have you checked it in game ?