Jump to content
Sign in to follow this  
fasad

Visitor3 script language comref

Recommended Posts

G'day,

I've got some time on my hands now, and am trying to work on some V3 scripts, but can't find any language reference documents. Does anyone know of any such document or can BI please release something?

As far as I can see it is not the same as the O2 language or ArmA scripts, since the example scripts use unfamiliar commands such as getObjectsWithTemplate, getLandHeight, etc.

The Visitor 3 Manual states :

Quote[/b] ]Scripts

Visitor 3 gives you the opportunity to use scripts for certain tasks. Scriptfiles have the ending .vis. We use the OFP own scripting language with some extensions. For all possible command see the Visitor Script Command Reference For some examples see Script folder in the directory you found this HTML file.

Share this post


Link to post
Share on other sites

Oooh, supportInfo to the rescue again... wink_o.gif

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">t:SCALAR

t:BOOL

t:ARRAY

t:STRING

t:NOTHING

t:IF

t:WHILE

t:FOR

t:SWITCH

t:EXCEPTION

t:Document

t:PosEdObject

t:AreaObject

t:Net

t:Object Template

t:Texture Template

t:IOStream

t:Matrix

b:SCALAR - SCALAR

b:ARRAY - ARRAY

b:SCALAR < SCALAR

b:Net advancewalkpoint ARRAY

b:Object Template,Matrix setname STRING

b:IOStream << STRING

b:STRING copyfileto STRING

b:ARRAY -- ARRAY

b:ARRAY cosangle ARRAY

b:SCALAR <= SCALAR

b:BOOL || BOOL

b:Document load STRING

b:AreaObject -= ARRAY

b:Document getobjecttemplates STRING

b:ARRAY . ARRAY

b:SCALAR / SCALAR

b:SCALAR atan2 SCALAR

b:SCALAR > SCALAR

b:BOOL && BOOL

b:ARRAY mxinterpolate SCALAR

b:ANY call STRING

b:STRING strcmp STRING

b:STRING strcmp STRING

b:PosEdObject setpos ARRAY

b:Net setpos ARRAY

b:IOStream skipuntil STRING

b:ARRAY mxpivotrotate ARRAY

b:ARRAY ** ARRAY

b:SCALAR ^ SCALAR

b:SCALAR mod SCALAR

b:SCALAR == SCALAR

b:STRING == STRING

b:ARRAY resize SCALAR

b:ARRAY find ANY

b:STRING find STRING

b:IF exitwith STRING

b:FOR step SCALAR

b:Document getposedobject SCALAR

b:ARRAY setverticesto Document

b:AreaObject locktextures BOOL

b:SCALAR dlgenablecontrol BOOL

b:ARRAY @ SCALAR

b:STRING @ SCALAR

b:ARRAY @ ARRAY

b:STRING @ ARRAY

b:SCALAR inform STRING

b:STRING inform STRING

b:IOStream testxmltag STRING

b:STRING count ARRAY

b:ANY in ARRAY

b:STRING else STRING

b:Document getlandheight ARRAY

b:Document getobjectsin AreaObject

b:Document getlandtexture ARRAY

b:IOStream ignore SCALAR

b:Object Template,Matrix transform ARRAY

b:WHILE do STRING

b:FOR do STRING

b:SWITCH do STRING

b:ARRAY ispointatarea AreaObject

b:STRING dlgupdatemclist ARRAY

b:SCALAR % SCALAR

b:SCALAR >= SCALAR

b:FOR from SCALAR

b:Document getobjectswithtemplate STRING

b:Document setfilename STRING

b:STRING dlgupdatelist ARRAY

b:ARRAY mxpush Object Template,Matrix

b:ARRAY ++ ARRAY

b:EXCEPTION catch STRING

b:Document getwaterheight ARRAY

b:Document getverticesunder AreaObject

b:Document save STRING

b:Object Template,Matrix setmodelfile STRING

b:IOStream seekoutput SCALAR

b:FOR to SCALAR

b:ARRAY selectindoc Document

b:PosEdObject selectindoc Document

b:AreaObject selectindoc Document

b:STRING shell STRING

b:ARRAY mxpivotscale ARRAY

b:ARRAY mxpivotscale SCALAR

b:ARRAY mxcalculatehierarchy ARRAY

b:ARRAY distancefrom ARRAY

b:SCALAR != SCALAR

b:STRING != STRING

b:STRING foreach ARRAY

b:Document createposedobject STRING

b:AreaObject += ARRAY

b:Document getbasetexture ARRAY

b:IF then STRING

b:IF then ARRAY

b:SCALAR min SCALAR

b:Document getnet SCALAR

b:PosEdObject setdir SCALAR

b:Net setdir SCALAR

b:AreaObject lockvertices BOOL

b:Document lockvertices ARRAY

b:IOStream explorefor STRING

b:IOStream get SCALAR

b:SCALAR * SCALAR

b:Object Template,Matrix * Object Template,Matrix

b:ARRAY * SCALAR

b:SCALAR * ARRAY

b:BOOL or BOOL

b:SCALAR max SCALAR

b:ARRAY sortby STRING

b:ARRAY sortby STRING

b:Document fastload STRING

b:SCALAR dlgvisiblecontrol BOOL

b:Document getprimtexture ARRAY

b:STRING findi STRING

b:IOStream seekinput SCALAR

b:STRING renamefileto STRING

b:Object Template,Matrix transformfast ARRAY

b:SCALAR + SCALAR

b:STRING + STRING

b:ARRAY + ARRAY

b:BOOL and BOOL

b:ARRAY select SCALAR

b:ARRAY select BOOL

b:SWITCH : STRING

b:Document iswaterat ARRAY

b:PosEdObject setrelheight SCALAR

b:ARRAY solveequation ARRAY

b:ARRAY set ARRAY

b:PosEdObject lock BOOL

b:Net lock BOOL

b:PosEdObject doesintersect Net

b:ARRAY angle ARRAY

u:random SCALAR

u:ceil SCALAR

u:- SCALAR

u:for STRING

u:for ARRAY

u:breakout STRING

u:getselectedposedobjects Document

u:eatwseol IOStream

u:testnumber IOStream

u:tg SCALAR

u:deg SCALAR

u:exp SCALAR

u:default STRING

u:scopename STRING

u:nextnetiter Document

u:getterrainsize Document

u:load Document

u:getwalkpoints Net

u:delay SCALAR

u:getname Object Template,Matrix

u:getname Texture Template

u:eatws IOStream

u:mxunpivot ARRAY

u:mxloaddirup ARRAY

u:while STRING

u:supportinfo STRING

u:case ANY

u:throw ANY

u:compile STRING

u:getfilename Document

u:dialogbox ARRAY

u:fromhex STRING

u:filesize IOStream

u:determinant ARRAY

u:! BOOL

u:! IOStream

u:call STRING

u:isnil STRING

u:getrelheight PosEdObject

u:newarea Document

u:dlgsetfocus SCALAR

u:cos SCALAR

u:atg SCALAR

u:round SCALAR

u:private

u:getposedobjectiter Document

u:resetnetiter Document

u:getzeropos PosEdObject

u:getboundingrect AreaObject

u:settimer ARRAY

u:opennetworkstream ARRAY

u:sin SCALAR

u:tan SCALAR

u:sqrt SCALAR

u:finite SCALAR

u:count ARRAY

u:count STRING

u:nextposedobjectiter Document

u:delete PosEdObject

u:reset AreaObject

u:showconsole BOOL

u:mxget Object Template,Matrix

u:echo STRING

u:breakto STRING

u:parsenumber STRING

u:resetposedobjectiter Document

u:~ SCALAR

u:getdir PosEdObject

u:getdir Net

u:dlggetcontrols STRING

u:dlgclose SCALAR

u:unsettimer STRING

u:dlgmaprect ARRAY

u:cesc STRING

u:val STRING

u:openfile ARRAY

u:backupfile STRING

u:shellcmdopenpipe STRING

u:mxloadupaside ARRAY

u:rad SCALAR

u:abs SCALAR

u:try STRING

u:getrvmatfilename Texture Template

u:openhybridstream ARRAY

u:deletefile STRING

u:createfolderex STRING

u:getline IOStream

u:mxpop ARRAY

u:assert BOOL

u:isnetiter Document

u:getverticesunder PosEdObject

u:getverticesunder Net

u:save Document

u:testnumberint IOStream

u:createfolder STRING

u:floor SCALAR

u:isposedobjectiter Document

u:getselectednets Document

u:gettemplatename PosEdObject

u:messagebox ARRAY

u:getsurfacename Texture Template

u:opennetworkserver ARRAY

u:eof IOStream

u:tellinput IOStream

u:tellouput IOStream

u:getnetcount Document

u:getnetiter Document

u:deselectobjects Document

u:getterrainname Texture Template

u:tolower STRING

u:mxloaddiraside ARRAY

u:vectorsize ARRAY

u:comment STRING

u:typename ANY

u:getartificialobjecttemplates Document

u:gettexturefilename Texture Template

u:testidentifier IOStream

u:getxmltag IOStream

u:mxpivot ARRAY

u:mxinverse Object Template,Matrix

u:if BOOL

u:str ANY

u:getselectedarea Document

u:fastload Document

u:getnatureobjecttemplates Document

u:chr SCALAR

u:asc STRING

u:tohex SCALAR

u:shellcmdnowait STRING

u:mxload ARRAY

u:mxloadupdir ARRAY

u:mxrotate ARRAY

u:acos SCALAR

u:log SCALAR

u:+ SCALAR

u:+ ARRAY

u:switch ANY

u:waituntil STRING

u:getpos PosEdObject

u:getpos Net

u:dlgmove ARRAY

u:dlgsize ARRAY

u:getmodelfile Object Template,Matrix

u:getbimpassfilename Texture Template

u:toupper STRING

u:shellcmd STRING

u:setcd STRING

u:mxmove ARRAY

u:mxtop ARRAY

u:asin SCALAR

u:atan SCALAR

u:ln SCALAR

u:not BOOL

u:getposedobjectcount Document

u:doesintersect PosEdObject

u:dlgupdate STRING

u:dlgsync STRING

u:splitpath STRING

u:openmemorystream STRING

u:getbuffer IOStream

u:mxscale ARRAY

u:mxscale SCALAR

n:dlgstopallevents

n:dlgwaitcursor

n:getcd

n:getactivedoc

n:openstandardio

n:nil

n:true

n:dlgyield

n:dlgunlockparent

n:openerrorio

n:eoln

n:pi

n:dlggetscreenrect

n:dlgstopevent

n:halt

n:dlggetdialogrect

n:false

n:homefolder

n:hostingapp

Hmmm, disappointingly few object manipulation commands. I can't see a way to set the direction vectors of an object (eg, trees with a slight tilt)!

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  

×