is there a way to use the tcl command in a script

Post » Thu Oct 07, 2010 7:37 pm

Hi everyone,

You know the "tcl" console command that toggle colision...
Is there a way to have the same effect through a script.
I would like to create a spell that makes the player experienced "out of body" sensation in game (so without having to type "tcl" in the console)

Thanks for your help
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Thu Oct 07, 2010 9:54 am

OBSE has "SetDisableGlobalCollision - sets whether to disable the global collision or not"

Or you might be able to use "runscriptline" if you need it to affect a specific actor.

edit: For an "out of body" experience, consider tapping them into third persona and using "con_tfc" to use the flying camera.
User avatar
Terry
 
Posts: 3368
Joined: Mon Jul 09, 2007 1:21 am

Post » Thu Oct 07, 2010 11:05 am

OBSE has "SetDisableGlobalCollision - sets whether to disable the global collision or not"

Or you might be able to use "runscriptline" if you need it to affect a specific actor.

edit: For an "out of body" experience, consider tapping them into third persona and using "con_tfc" to use the flying camera.

Thank you showler let me test all this...I'll get back to you guys...
User avatar
Amber Hubbard
 
Posts: 3537
Joined: Tue Dec 05, 2006 6:59 pm

Post » Thu Oct 07, 2010 10:39 pm

Yes there are ways to do that with the OBSE

way 1:
PrintToConsole
http://cs.elderscrolls.com/constwiki/index.php/PrintToConsole

Way 2:
Con_TCL
http://cs.elderscrolls.com/constwiki/index.php/Con_TCL

I don't know if they'll work for what you want to do, but just to let you know there ARE ways to do it.
User avatar
Conor Byrne
 
Posts: 3411
Joined: Wed Jul 11, 2007 3:37 pm

Post » Thu Oct 07, 2010 7:05 pm

PrintToConsole
PrintToConsole only prints out information from the script to the console for debugging. It doesn't run the printed out text as a command. I think you're confusing it with "RunScriptLine"
User avatar
X(S.a.R.a.H)X
 
Posts: 3413
Joined: Tue Feb 20, 2007 2:38 pm

Post » Thu Oct 07, 2010 4:31 pm

Hi everyone,

Ok guys it does not work

My script is pretty simple if not simplistic: see below

I've attached that script to a Spell (so scripteffect)

The thing works but not as I w

ScriptName MACustomTFCScript

Begin GameMode

Player.con_TFC

end
User avatar
Chad Holloway
 
Posts: 3388
Joined: Wed Nov 21, 2007 5:21 am

Post » Thu Oct 07, 2010 10:47 pm

Hi everyone,

Ok guys it does not work as I would like

My script is pretty simple if not simplistic: see below

I've attached that script to a Spell (so scripteffect)

The thing works but not as I would like. Basically as the player calls the spell on him/herself it freezes his/her movements and the player just slides over the ground...

What I want is the player character to stand where he/her casted the spell and then a flying camera starts so the player can explore for a certain time his/her Surrounding (as when you type tcl in the console).

my poor script below

ScriptName MACustomTFCScript

Begin GameMode

Player.con_TFC

end

I need your help...
User avatar
michael flanigan
 
Posts: 3449
Joined: Thu Jun 14, 2007 2:33 pm

Post » Thu Oct 07, 2010 8:41 pm

Hi everyone,

Ok guys it does not work as I would like

My script is pretty simple if not simplistic: see below

I've attached that script to a Spell (so scripteffect)

The thing works but not as I would like. Basically as the player calls the spell on him/herself it freezes his/her movements and the player just slides over the ground...

What I want is the player character to stand where he/her casted the spell and then a flying camera starts so the player can explore for a certain time his/her Surrounding (as when you type tcl in the console).

my poor script below

ScriptName MACustomTFCScript

Begin GameMode

Player.con_TFC

end

I need your help...

EDIT 0: sorry for the double post I am not sure how I can delete the redundancy... :wacko:

EDIT 1 again: guys it works I just needed to start my script with Begin ScriptEffectStart instead of Begin Gamemode

EDIT 2 again: so the spell works but when its over the player remains in tcl mode (so to speak) he/her does not get back automatically in his/her body...How should I go about making the spell stop after 60 seconds. Note that I already set my spell to 60 seconds...however the script continues even after those 60s run out. Any help is welcome...

EDIT 3 again & again: ok I've manged to make it start and end her is my finall script. I am not sure it's pretty but it worked...

ScriptName MACustomTFCScript

Begin ScriptEffectStart

Player.con_TFC

End

Begin ScriptEffectFinish

Player.con_TFC

End


Thanks again guys
User avatar
Dawn Porter
 
Posts: 3449
Joined: Sun Jun 18, 2006 11:17 am


Return to IV - Oblivion