Bug?-onPickupRespawn

Started by Hoss, Aug 31, 2017, 11:04 AM

Previous topic - Next topic

Hoss

The function onPickupRespawn is not being called when a pickup respawns

D4rkR420R

Post your onPickupRespawn function.

Hoss

Quote from: DarkRaZoR^ on Aug 31, 2017, 02:16 PMPost your onPickupRespawn function.

function onScriptLoad()
{
pick <- CreatePickup( 272,1,1,Vector(-680.900,1292.80,13.4768),255,true);
pick.Timer=3000;
}
function onPickupRespawn( pickup )
{
Message("The pickup has respawned!");
}

Took the pickup , pickup respawns as expected but no message appears.

D4rkR420R

Quote from: Hoss on Aug 31, 2017, 03:15 PM
Quote from: DarkRaZoR^ on Aug 31, 2017, 02:16 PMPost your onPickupRespawn function.

function onScriptLoad()
{
pick <- CreatePickup( 272,1,1,Vector(-680.900,1292.80,13.4768),255,true);
pick.Timer=3000;
}
function onPickupRespawn( pickup )
{
Message("The pickup has respawned!");
}

Took the pickup , pickup respawns as expected but no message appears.

Try setting the pickup isAuto to false.

Hoss

Quote from: DarkRaZoR^ on Sep 01, 2017, 01:24 AM
Quote from: Hoss on Aug 31, 2017, 03:15 PM
Quote from: DarkRaZoR^ on Aug 31, 2017, 02:16 PMPost your onPickupRespawn function.

function onScriptLoad()
{
pick <- CreatePickup( 272,1,1,Vector(-680.900,1292.80,13.4768),255,true);
pick.Timer=3000;
}
function onPickupRespawn( pickup )
{
Message("The pickup has respawned!");
}

Took the pickup , pickup respawns as expected but no message appears.

Try setting the pickup isAuto to false.

It's still the same...No message appears.

NicusorN5

#5
There's a method using onPickupPickedUp, create a timer that calls the Message function , with the same mili-seconds as the respawn time.
It's very simple, it should work even if the pickup has isAuto false or true.

Hoss

Yes i know we can make a timer to do that. I was wondering if its a bug or i was doing something wrong, Looks like it is a bug..hope it will be fixed soon.
Anyways thanks.