|
Post by Asnipe34 on Oct 15, 2007 7:05:19 GMT -5
I haven't noticed any scripted triggers in KF maps and I wondered if it's ok to use them? I mean I could put some in and then find they'll be crashing games, which I don't want. I did a search on this site KF (of 365days) for 'scriptedtriggers', but no mention. (AI scripts, an adjunct, I'm not asking about because obviously 'zombie wave' is great.) So I want to trigger emitters and in my research, everything points to using scripted triggers. 2nd. I'm animating textures for said emitter, and tex must have a black background for the mask, but I want to animate a solid black object. Is there a way around this other than using very dark blue? I tried different textures (black on white and varied the modulations' options, but the square outline of the texture (although it's see-through) still shows up. Actually I did manage to animate with a nice dark blue, but then text turned light blue... Maybe I was just tired. I'll ask my daughter who has PSP experience, but she's said she's rusty on that so I'm not holding out for her advice. I searched the net as well, but +black +mask, +white, you may see that my searches aren't getting me into stuff I want to know Hope you can help!
|
|
|
Post by manhunt0r on Oct 15, 2007 10:52:32 GMT -5
well a custom trigger based on money amount worked perfectly well for me
class scoreTrigger extends Trigger
placeable;
var bool built;
var(scoreTrigger) int price;
var name event;
function Touch(actor EventInstigator)
{
local Pawn temp;
if (EventInstigator.IsA('Pawn'))
{
temp=Pawn(EventInstigator);
if (temp.Controller.IsA('KFPlayerController'))
{
if(temp.Controller.PlayerReplicationInfo.Score>=price&&!built)
{
temp.Controller.PlayerReplicationInfo.Score=temp.Controller.PlayerReplicationInfo.Score-price;
built=true;
TriggerEvent( Event, EventInstigator , temp );
Pawn(EventInstigator).ClientMessage( "moving done");
return;
}
if(temp.Controller.PlayerReplicationInfo.Score<price&&!built)
{
Pawn(EventInstigator).ClientMessage( "insuficient money, you stil need "@price-temp.Controller.PlayerReplicationInfo.Score@" pounds" );
}
else
{
Pawn(EventInstigator).ClientMessage( "already built!" );
}
}
}
}
|
|
|
Post by Asnipe34 on Oct 16, 2007 1:14:47 GMT -5
"Custom trigger" I'm just getting the hang of scripted, but thanks for your insight!
On masked textures, my daughter suggested for my foreground I use very dark brown and that works well.
|
|