Home » Renegade Discussions » Mod Forum » Stealth command help
Re: Stealth command help [message #408565 is a reply to message #408560] |
Tue, 27 October 2009 13:10 |
Hubba
Messages: 40 Registered: October 2009
Karma:
|
Recruit |
|
|
reborn wrote on Tue, 27 October 2009 13:29 | It absolutely will attach to an invis object. Did you remember the scripts registrant?
//edit
I see what you're doing wrong.. It's "Invisible_Object", not "Invis_Object".
|
That did the trick.
Okey i got it work. But i want you to take a look:
Join_hook
if(Get_GameObj(i)){
Attach_Script_Once(Get_GameObj(i),"Test_hubba","");
}
else {
Vector3 pos;
pos.X = 0.0f;
pos.Y = 0.0f;
pos.Z = 0.0f;
GameObject *invis = Commands->Create_Object("Invisible_Object", pos);
Attach_Script_Once(invis,"Test_hubba1","");
Test_hubba1
void Test_hubba1::Created(GameObject *obj){
Commands->Start_Timer(obj,this,1.0f,1);
}
void Test_hubba1::Timer_Expired(GameObject *obj,int ID)
{
if(Get_GameObj(ID)){
for (int a = 0; a < 128; a++){
if(IsPlayerStealth[a] == true){
Commands->Enable_Stealth(Get_GameObj(a),true);
}
}
}
else {
Attach_Script_Once(obj,"Test_hubba1","");
}
}
Test_hubba
void Test_hubba::Created(GameObject *obj){
Commands->Start_Timer(obj,this,5.0f,1);
}
void Test_hubba::Timer_Expired(GameObject *obj,int number)
{
if (number == 1){
for (int a = 0; a < 128; a++){
if(IsPlayerStealth[a] == true){
Commands->Enable_Stealth(Get_GameObj(a),true);
}
}
}
}
Now it depends on how fast you load. If i put in hubba_test1 the timer to for example 0.5 then it would be way to fast. But 1.0 works for me. But if we got a really slow player then it wouldnt work? Well i could put the timer to like 5.0 like i have in hubba_test then i would get most of the players.
Yes i dont really know if i coded anything right in hubba_test1 so if you could take a look it would be nice.
[Updated on: Tue, 27 October 2009 13:15] Report message to a moderator
|
|
|
|
|
Stealth command help
By: Hubba on Wed, 21 October 2009 10:49
|
|
|
Re: Stealth command help
By: ErroR on Wed, 21 October 2009 11:09
|
|
|
Re: Stealth command help
By: Hubba on Wed, 21 October 2009 11:47
|
|
|
Re: Stealth command help
By: ErroR on Wed, 21 October 2009 11:54
|
|
|
Re: Stealth command help
|
|
|
Re: Stealth command help
By: Hubba on Wed, 21 October 2009 12:31
|
|
|
Re: Stealth command help
|
|
|
Re: Stealth command help
|
|
|
Re: Stealth command help
By: Hubba on Wed, 21 October 2009 20:41
|
|
|
Re: Stealth command help [Solved]
By: cAmpa on Thu, 22 October 2009 00:22
|
|
|
Re: Stealth command help [Solved]
|
|
|
Re: Stealth command help [Solved]
By: reborn on Thu, 22 October 2009 06:12
|
|
|
Re: Stealth command help [Solved]
|
|
|
Re: Stealth command help [Solved]
|
|
|
Re: Stealth command help [Solved]
By: reborn on Thu, 22 October 2009 12:33
|
|
|
Re: Stealth command help [Solved]
By: Hubba on Thu, 22 October 2009 13:08
|
|
|
Re: Stealth command help
By: reborn on Thu, 22 October 2009 13:19
|
|
|
Re: Stealth command help
By: Hubba on Thu, 22 October 2009 13:27
|
|
|
Re: Stealth command help
By: reborn on Thu, 22 October 2009 13:38
|
|
|
Re: Stealth command help
By: Hubba on Thu, 22 October 2009 13:44
|
|
|
Re: Stealth command help
By: cAmpa on Thu, 22 October 2009 13:42
|
|
|
Re: Stealth command help
By: reborn on Fri, 23 October 2009 03:46
|
|
|
Re: Stealth command help
By: jonwil on Fri, 23 October 2009 04:52
|
|
|
Re: Stealth command help
|
|
|
Re: Stealth command help
By: raven on Fri, 23 October 2009 13:21
|
|
|
Re: Stealth command help
By: Hubba on Sat, 24 October 2009 05:44
|
|
|
Re: Stealth command help
By: cAmpa on Sat, 24 October 2009 05:47
|
|
|
Re: Stealth command help
By: Hubba on Sat, 24 October 2009 06:02
|
|
|
Re: Stealth command help
By: Hubba on Sun, 25 October 2009 13:17
|
|
|
Re: Stealth command help
By: reborn on Sun, 25 October 2009 13:44
|
|
|
Re: Stealth command help
By: Hubba on Sun, 25 October 2009 14:18
|
|
|
Re: Stealth command help
By: reborn on Sun, 25 October 2009 15:54
|
|
|
Re: Stealth command help
By: nopol10 on Sun, 25 October 2009 17:08
|
|
|
Re: Stealth command help
By: reborn on Sun, 25 October 2009 23:35
|
|
|
Re: Stealth command help
By: Hubba on Mon, 26 October 2009 09:01
|
|
|
Re: Stealth command help
By: reborn on Mon, 26 October 2009 11:44
|
|
|
Re: Stealth command help
|
|
|
Re: Stealth command help
By: Hubba on Mon, 26 October 2009 12:26
|
|
|
Re: Stealth command help
By: reborn on Mon, 26 October 2009 12:43
|
|
|
Re: Stealth command help
By: Hubba on Mon, 26 October 2009 12:48
|
|
|
Re: Stealth command help
By: nopol10 on Mon, 26 October 2009 16:31
|
|
|
Re: Stealth command help
By: reborn on Mon, 26 October 2009 23:24
|
|
|
Re: Stealth command help
By: Hubba on Tue, 27 October 2009 07:04
|
|
|
Re: Stealth command help
By: reborn on Tue, 27 October 2009 10:11
|
|
|
Re: Stealth command help
By: Hubba on Tue, 27 October 2009 11:18
|
|
|
Re: Stealth command help
By: reborn on Tue, 27 October 2009 11:30
|
|
|
Re: Stealth command help
By: Hubba on Tue, 27 October 2009 11:56
|
|
|
Re: Stealth command help
By: reborn on Tue, 27 October 2009 12:29
|
|
|
Re: Stealth command help
By: Hubba on Tue, 27 October 2009 13:10
|
|
|
Re: Stealth command help
By: reborn on Tue, 27 October 2009 13:30
|
|
|
Re: Stealth command help
By: reborn on Wed, 28 October 2009 01:37
|
|
|
Re: Stealth command help
By: Hubba on Wed, 28 October 2009 07:58
|
|
|
Re: Stealth command help
By: reborn on Wed, 28 October 2009 08:19
|
|
|
Re: Stealth command help
By: Hubba on Wed, 28 October 2009 08:59
|
|
|
Re: Stealth command help
By: reborn on Wed, 28 October 2009 10:31
|
|
|
Re: Stealth command help
By: Hubba on Wed, 28 October 2009 11:09
|
|
|
Re: Stealth command help
By: reborn on Wed, 28 October 2009 11:17
|
|
|
Re: Stealth command help
|
Goto Forum:
Current Time: Sat Dec 21 08:49:46 MST 2024
Total time taken to generate the page: 0.01424 seconds
|