SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: wsa30h on December 28, 2019, 11:17:07 AM

Title: are there script cb do files in bf1 ?
Post by: wsa30h on December 28, 2019, 11:17:07 AM
can i make ascript cb dofile or modify one in bf1 ?
Title: Re: are there script cb do files in bf1 ?
Post by: Dark_Phantom on December 28, 2019, 03:29:02 PM
ScriptCB_DoFile("luaname") will execute any lua file you have included, allowing you to call in custom lua script functions.
Title: Re: are there script cb do files in bf1 ?
Post by: wsa30h on December 29, 2019, 03:43:46 AM
how do i set that up ?
Title: Re: are there script cb do files in bf1 ?
Post by: Dark_Phantom on December 29, 2019, 09:08:24 PM
http://www.swbfgamers.com/index.php?topic=6706.msg71350#msg71350
This is a good example.
I don't think it does what you think it does - essentially, if you write a chunk of lua script that would be better if you could repeat it all the time, you can put it in a function.  Then, using this method, you call it in when you need it rather than copying it in all the time.
EhPortal 1.34 © 2025, WebDev