Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » is stealth
is stealth [message #471583] Fri, 13 July 2012 10:13 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
the function Is_Stealth(GameObject *obj)

only checks if the object really is stealth at that moment isnt there a check if someone has stealth activated?


edit :

fixed it had to write a new funtion but it got it done Smile


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Fri, 13 July 2012 10:19]

Report message to a moderator

Re: is stealth [message #471585 is a reply to message #471583] Fri, 13 July 2012 10:21 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
What did you write?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: is stealth [message #471591 is a reply to message #471583] Fri, 13 July 2012 10:30 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i tried to use

->Is_Stealth_Enabled();


but it gives unresolved external symbol

there is a function for soldiers but i need a check for both of em

so i actually didnt fix it Sad


Owner of kambot TT server

kambot.freeforums.org
Re: is stealth [message #471633 is a reply to message #471583] Fri, 13 July 2012 15:47 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
Is_Stealth_Enabled was added in beta 5 and is what you want, however it seems to be broken and only works for soldiers. You can try SmartGameObj::Is_Stealth_Enabled instead, except it isn't exported. Try adding the following to your plugin and see if it works.

bool SmartGameObj::Is_Stealth_Enabled()
{
	return StealthEnabled;
}




Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )

[Updated on: Sat, 14 July 2012 03:59]

Report message to a moderator

Re: is stealth [message #471634 is a reply to message #471583] Fri, 13 July 2012 15:51 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
so if i would add it into my plugin it will work? Surprised seems weird

and yes i found that but i never knew i could just copy paste it into my plugin


edit :

ok that totally doesnt work Surprised


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Fri, 13 July 2012 15:55]

Report message to a moderator

Previous Topic: Xcc_Mixer
Next Topic: set object type for vehicles
Goto Forum:
  


Current Time: Wed Dec 18 01:04:21 MST 2024

Total time taken to generate the page: 0.00684 seconds