Log in

View Full Version : Container syncing and script callbacks



foxtacles
04-10-2012, 08:50 PM
void VAULTSCRIPT OnContainerItemChange( ID container, Base base, Count count, Value value )
{
printf("%s %08X %d %f", GetName(container).c_str(), base, count, (float)value);
}

void VAULTSCRIPT OnActorEquipItem( ID actor, Base base, Value value )
{
printf("eq %s %08X %f", GetName(actor).c_str(), base, (float)value);
}

void VAULTSCRIPT OnActorUnequipItem( ID actor, Base base, Value value )
{
printf("ueq %s %08X %f", GetName(actor).c_str(), base, (float)value);
}

It responds lightning fast to in-game changes ;)
87

foxtacles
04-12-2012, 03:52 PM
That nuka cola has been added with AddItem :)
88

CTCCoco
04-13-2012, 12:21 AM
Seriously, this is getting better and better literally every hour. Looking epic for me!

Aeronix
04-13-2012, 02:09 AM
Glad to see new functions coming out that have the power to manipulate the gameplay.
Good job :P