function fxDTSBrick::AzjAdjSuppliesDrop(%dblock,%num,%client)
{
stuff
....
for(%i=0;%i<%num;%i++)
{
schedule(5600+(%i*40), 0, nopillairstrikeclient, %v,%dblock);
}
schedule(10050,0,messageall,"","Supply drop complete.");
}
I have the above function with the arguments that you can see, the first is a datablock of the item you want, the number is how many to drop, and the client is of course, the client.....
function NoPillAirstrikeClient(%obj,%dblock)
{
%cash = new Item()
{
datablock = %dblock;
canPickup = true;
};
%cash.schedule(50,"setTransform", %obj.getTransform());
MissionCleanup.schedule(100, "add", %cash);
}
The above is just another function to add some context.
registerOutputEvent("fxDTSBrick","AzjAdjSuppliesDrop", "string 250 250", "int 1 15 6",1);
And I want to add an output even to activate that first function, it has a string for the datablock and the int for how many to drop, as arguments, I also want it to pass the client. I try this but it dosn't work.....
(The above posts thing worked, but this is a new function)