ikermen Posted March 5, 2009 Share Posted March 5, 2009 Hi:First post. And I need help, please. I don´t know that is wrong, but my script refuses this command. It simply does nothing. If iswimming == 1 (or player.isswimming)if initWater == 0set TimerWater to 4set initWater to 1elseif TimerWater > 0set TimerWater to TimerWater - GetSecondspassedelseset initWater to 0Player.CastImmediateOnSelf ElectricWaterSpellendifendif If I remove the first IF, the script works.What´s the problem? Link to comment Share on other sites More sharing options...
cscottydont Posted March 6, 2009 Share Posted March 6, 2009 first, I doubt this is the problem, but in that first line you have "iswimming" - should be "isswimming" second, what type of script is this? (quest, effect, object) Link to comment Share on other sites More sharing options...
ikermen Posted March 6, 2009 Author Share Posted March 6, 2009 Hi:UfIn my script is correct (isswimming), anyway.It´s a quest script. Link to comment Share on other sites More sharing options...
Cipscis Posted March 6, 2009 Share Posted March 6, 2009 It's been reported that IsSwimming doesn't work correctly on the player - it will only work as intended on other Actors. One possible workaround would be to move an Actor temporarily to the player's position and call IsSwimming on them, then either move them to some remote location or Disable them. This has been reported to be very slow, so if you go this route then I would recommend that you check less often than every frame. Another approach, which only really works if the script only needs to apply in the Wasteland worldspace, is to check the player's Z coordinate, as the water level in the Wasteland worldspace is constant (although I don't know it off the top of my head). Cipscis Link to comment Share on other sites More sharing options...
ikermen Posted March 6, 2009 Author Share Posted March 6, 2009 Hi:Thank you for your answer!Both options prevent the idea works, so I will reject this command.Thanks Link to comment Share on other sites More sharing options...
ikermen Posted March 26, 2009 Author Share Posted March 26, 2009 Hi!So...I have decided to try again. :whistling: But I don´t know how to make a unseen Actor , because I conclude that the Actor must be invisible, True? Link to comment Share on other sites More sharing options...
Cipscis Posted March 28, 2009 Share Posted March 28, 2009 You could probably just Disable the actor, although if that doesn't work in this case then you could try using SetScale to shrink it down to 0 size. Cipscis Link to comment Share on other sites More sharing options...
ikermen Posted March 29, 2009 Author Share Posted March 29, 2009 Thank you very much, Cipsis! Link to comment Share on other sites More sharing options...
ikermen Posted March 31, 2009 Author Share Posted March 31, 2009 MmmmDisable does not seem to work. And setscale allows me to continue interacting with the actor (and I suspect that triggered mines, for example) :wallbash: Any idea, please? Link to comment Share on other sites More sharing options...
Crowbennett08 Posted April 5, 2009 Share Posted April 5, 2009 in regard to your first post, you are missing an endif command, as you had three if variables. which makes sense if you take away an if the script compiles. And an Endif at the end of the script and see if that works. also, if you're still having problems, try replacing the - with ==, see if that works. idk what you are trying to do with this script, but that's my 2 cents Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.