Jump to content

IsInKillCam never returns true


UnvalidUserName

Recommended Posts

You mean 0.1 on the script delay ... 10th of a second is as fast as a quest script will go , but is probably fast enough for this. Also the default flag should not be checked ... which is actually 5.0 sec. Just a mention because I know that can confuse people.

 

Then also according to the wiki page on the function https://geckwiki.com/index.php?title=IsInKillCam

 

It looks like you can't use the function directly as a condition ... so you need to have it put its value in a variable ... then you check that variable to do something.

 

~~~~~~~~~~~~~

SCN MyQuestScript

 

short bInKillCam

 

Begin GameMode

 

Set bInKillCam to IsInKillCam

If bInKillCam == 1

; Do mystuff here

Else

; something else / nothing

endif

End

~~~~~~~~~~~~~

 

Depending on what you're doing you may need other variables to act as switches.

Link to comment
Share on other sites

Ok, I'll try using it outside the if

 

Your statement indicates you don't understand the nuance , which is important.

 

And I think you may not understand what a variable does ?

 

Think of it as a save slot , which you can make different kinds .

The kind in this instance being a spot to save a bool , or simply a whole number (no decimal place)

Bool means 0 or 1 ,,, on or off ,,, this or that ; only 2 possibilites

 

But there is no classification for a bool variable except that it is whole numbers.

Therefore it is an Integer ... or short to declare "Int"

 

Then there is short and long which I am not even sure why those exist with the "Int" variable taking care of things.

But you can use short in place of it ... hence I used it for a bool . Scripting eventually depends on the text you use ... even though the engine doesn't care. Typically we write script so other humans can understand it ... hence you see spots with capitaliZation to separate words in an ID . But so you know ... the computer that reads it does not care about the things we do for other humans to read the code / mostly .

 

So now you want to try doing that outside of something ?

Link to comment
Share on other sites

Dude, how did you come to the conclusion that I don't know what a variable is?

There is nothing different in your code besides the fact that you don't call IsInKillCam inside the if statement, as in the argument of it.

Here is the section of the code if you want to see, I'm not posting the whole thing because it's too long. Don't worry thou, the variables are declared on top

 

 

if (IsInKillCam)!=1
if (player.HasMagicEffect UBTEffect)
if player.IsWeaponOut
player.damageAV Actionpoints WAPCost
else
player.damageAV Actionpoints UBTMult; <---------------Just a way to set action points consumption to a minimal if weapons are holsetered
endif
if (player.getav actionpoints)<1 || Active!=1
player.dispel UBTDrug
set Active to 0
endif
endif
endif

 

Edited by UnvalidUserName
Link to comment
Share on other sites

Dude, how did you come to the conclusion that I don't know what a variable is?

 

There is nothing different in your code besides the fact that you don't call IsInKillCam inside the if statement, as in the argument of it.

Here is the section of the code if you want to see, I'm not posting the whole thing because it's too long. Don't worry thou, the variables are declared on top

 

 

if (IsInKillCam)!=1

if (player.HasMagicEffect UBTEffect)

if player.IsWeaponOut

player.damageAV Actionpoints WAPCost

else

player.damageAV Actionpoints UBTMult; <---------------Just a way to set action points consumption to a minimal if weapons are holsetered

endif

if (player.getav actionpoints)<1 || Active!=1

player.dispel UBTDrug

set Active to 0

endif

endif

endif

 

 

 

So your cool with a variable being a slot to save sumthin ?

Live by it Breath it while writing code ?

Link to comment
Share on other sites

AaaaHHAAA see now you're questioning yourself ... not sure about what you know.

 

My advice at this point is think simple ... often times we over think what we want to accomplish ( geck work)

And it may just be a simple change to get what you want.

But follow the rule of ... Know what you Want !

It will see you through many geck dilema's

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...