Is it possible to make or have a script that opens a door?? like a gameobject, lets say every 5 minutes and then it closes for lik 2 lol?? If so can anoyne tell me how, or if have it please may i get it??+Rep
Is it possible to make or have a script that opens a door?? like a gameobject, lets say every 5 minutes and then it closes for lik 2 lol?? If so can anoyne tell me how, or if have it please may i get it??+Rep
opening yes, you just set the animation, i dont think you can close it though, correct me if im wrong
Hmm well, is there a possibility? well what would the script be then even to open it.
actually it could be done if you do a gameobject rotation instead of activation, so you could do it with a wall or something like that, the script would be:
SetFloatValue(GAMEOBJECT_ROTATION,amountf);
But why a rotation? So it slightly moves and then moves back after like 5 minutes????? Oh that would be a ctually really cool, but wait is that C++ or Lua
That was C++.
yea, i dont think it can be done in LUA. or if you dont like the rotation idea you could try to do a despawn of the gameobject then respawn
But only in C++ you can set it to open/close in a regular interval.
Hmm yea, i figured it was C++ lo lmy bad, but yea about the respawning and despawning wouldnt that like lagg up the server alot? and btw are you really good with c++???
If done every 5+ minutes, not at all. It's a single GO getting activated and deactivated.
Oh, so what would the code fro that be??
but if you have a bunch of them being activated at the same time then there could be trouble
lol i dont think 2-4 is a bunch is it?
Edit: i would prolly make it different timings then.
Edit2: SO wait how would the code for that look like?
Last edited by jokerjokes; 03-19-2008 at 07:42 PM.
Heh forgot to +rep yyou guys before, but done thanks.