Stealth Suit POW [message #486586] |
Tue, 04 March 2014 03:09 ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
Stallion
Messages: 222 Registered: April 2006
Karma: 0
|
Recruit |
|
|
I made the stealth suit work on pick up using the tda_stealth_armor script, but when I put it in a purchase using jfw_powerup_buy_poke it doesn't work.
I use the powerup_buy script for many items and have checked my work several times but for some unknown reason you don't stealth when you buy it.
Does anyone know why this is happening?
Level edit is my play ground
|
|
|
|
|
|
|
Re: Stealth Suit POW [message #486623 is a reply to message #486621] |
Wed, 05 March 2014 11:31 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](/images/custom_avatars/21300.png) |
Jerad2142
Messages: 3807 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
Sorry didn't read ![Sad](images/smiley_icons/icon_sad.gif)
Then yes,
void Enable_Stealth_Poke::Poked(GameObject *obj, GameObject *poker)
{
Commands->Enable_Stealth(poker,true);
}
would work, but if you wanted something that goes away after a time period you could also do:
void Enable_Stealth_Poke::Poked(GameObject *obj, GameObject *poker)
{
Commands->Attach_Script(poker,"TDA_Stealth_Armor","300.0");// 300 seconds
Commands->Send_Custom_Event(obj,poker,1000,0,0);
}
Visit Jerad's deer sweat shop
|
|
|
|