Stealth Suit POW [message #486586] |
Tue, 04 March 2014 03:09 |
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 |
|
Jerad2142
Messages: 3811 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
Sorry didn't read
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
|
|
|
|