UnvalidUserName Posted March 12, 2020 Share Posted March 12, 2020 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? Link to comment Share on other sites More sharing options...
Mktavish Posted March 12, 2020 Share Posted March 12, 2020 Could you post how you are using it in a script / what type of script / Delay on Quest if applicable ? Link to comment Share on other sites More sharing options...
UnvalidUserName Posted March 12, 2020 Author Share Posted March 12, 2020 I'm using a 0.01 delay on a quest script. Using it as condition for an if statement. Also idk if it matters but i only tested it with playerview kill cam on. Link to comment Share on other sites More sharing options...
Mktavish Posted March 12, 2020 Share Posted March 12, 2020 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 endifEnd~~~~~~~~~~~~~ Depending on what you're doing you may need other variables to act as switches. Link to comment Share on other sites More sharing options...
UnvalidUserName Posted March 12, 2020 Author Share Posted March 12, 2020 Ok, I'll try using it outside the if Link to comment Share on other sites More sharing options...
Mktavish Posted March 12, 2020 Share Posted March 12, 2020 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 More sharing options...
UnvalidUserName Posted March 12, 2020 Author Share Posted March 12, 2020 (edited) 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)!=1if (player.HasMagicEffect UBTEffect)if player.IsWeaponOutplayer.damageAV Actionpoints WAPCostelseplayer.damageAV Actionpoints UBTMult; <---------------Just a way to set action points consumption to a minimal if weapons are holseteredendifif (player.getav actionpoints)<1 || Active!=1player.dispel UBTDrugset Active to 0endifendifendif Edited March 12, 2020 by UnvalidUserName Link to comment Share on other sites More sharing options...
Mktavish Posted March 12, 2020 Share Posted March 12, 2020 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)!=1if (player.HasMagicEffect UBTEffect)if player.IsWeaponOutplayer.damageAV Actionpoints WAPCostelseplayer.damageAV Actionpoints UBTMult; <---------------Just a way to set action points consumption to a minimal if weapons are holseteredendifif (player.getav actionpoints)<1 || Active!=1player.dispel UBTDrugset Active to 0endifendifendif 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 More sharing options...
Mktavish Posted March 12, 2020 Share Posted March 12, 2020 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 More sharing options...
UnvalidUserName Posted March 13, 2020 Author Share Posted March 13, 2020 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 Link to comment Share on other sites More sharing options...
Recommended Posts