//======================================================================
// Trigger to give a aug to the player for DXDL_Training - Darma Labs Inc. 2010 - 2012
//======================================================================
class AddAugTrigger extends Trigger;
var travel AugmentationManager AugmentationSystem;
function AddAug(class<Augmentation> WantedAug)
{
local Augmentation anAug;
if (AugmentationSystem != None)
{
anAug = AugmentationSystem.GivePlayerAugmentation(WantedAug);
if (anAug == None)
ClientMessage(GetItemName(String(WantedAug)) $ " is not a valid augmentation!");
}
}
function Touch(Actor toucher)
{
AddAug(toucher,WantedAug); // I think it's this the problem
}
defaultproperties
{
}
My error is "C:\DeusEx\TrainingSystem\Classes\AddAugTrigger.uc(23) : Error, Call to 'AddAug': type mismatch in parameter 1"
The function AddAug takes one argument, you pass two, which is unlikely to be correct.
The error says 'type mismatch in parameter 1', this suggests that the parameter you pass is of a different type than the one the function expects. Given that you pass an Actor as first parameter, and the function is defined to receive "class<Augmentation>" I would expect that to cause your error.
Another Visitor ... Stay a while ... Stay forever!
So I guess that means the problem of the TS has been resolved? In that case: @TS: nvm for now, but please edit your post if your issue has been resolved.
Another Visitor ... Stay a while ... Stay forever!