The IsInKillCam command from the JIP Plugin just never returns true for me. Is this a broken feature of the plugin or is it just my geck not working?

#1
Posted 12 March 2020 - 06:26 AM

#2
Posted 12 March 2020 - 11:34 AM

Could you post how you are using it in a script / what type of script / Delay on Quest if applicable ?
#3
Posted 12 March 2020 - 11:40 AM

#4
Posted 12 March 2020 - 01:27 PM

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...tle=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.
#5
Posted 12 March 2020 - 09:30 PM

Ok, I'll try using it outside the if
#6
Posted 12 March 2020 - 11:17 PM

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 ?
#7
Posted 12 March 2020 - 11:22 PM

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
Edited by UnvalidUserName, 12 March 2020 - 11:29 PM.
#8
Posted 12 March 2020 - 11:41 PM

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
Spoiler
So your cool with a variable being a slot to save sumthin ?
Live by it Breath it while writing code ?
#9
Posted 12 March 2020 - 11:47 PM

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
#10
Posted 13 March 2020 - 12:08 AM

So is it just not working for me? Is it the plugin install or game installed broken? Same thing happened to me with elseif last week, had to change all the scripts to use else with an if inside to make them work again. I think this thing hates me
Also tagged with one or more of these keywords: jip
