PDA

View Full Version : Help me with FX (SP)



ArtSerjGaming
January 15th, 2017, 05:45
I have idea. :)
I understand that in theory is quite possible to do, but how?
I want make in map.

When I run over a tunnel then I touch trigger_radius (or trigger_multiple) and it launches two effects:
- effect of shaking ground in (targetname = location1) on my map (with ability to setting force in time of shaking again),
- FX little fall dust from ceiling.

I understand that this trigger gives the command to start for the effect of shaking
and FX little fall dust from the ceiling when the trigger activited.

I have only one example script for running - shaking of the earth
(with the ability to setting for force shaking of the earth and jerky repetition period between).
And that is all.

But how all this is to tie together the trigger and all this shake and FX,
that when one player touch this trigger all this to working?
But when a player get out from zone of this trigger then the effect of shaking of the earth
and FX little fall dust from ceiling - both is switched off.
But all this was repeat when one player reenters the action trigger zone.
how i understand this is working - trigger_multiple.

Script is shaking of the earth:




main()
{
thread shake();
}

shake()
{
for(;;){
earthquake(0.2,5,(0,0,0),1400);
//0.4 - setting for force shaking (0.3 is default)
//5 - the duration of the shaking of the earth (in seconds is 10)
//1400 - radius of the earthquake
wait(RandomFloatRange(5,45)); //default 20,300
wait(5);
}
}



Help me for resolve this problem, all tie together, please. :(
(and yes, such an example i see even in CoD2, where you go in some of the maps
in tunnel with allies and there it FX and Shake earth is working.

i don't remember that it the map, but in the map has captain Price, tanks and sand ground


Help me for resolve this problem, please. :)

MelVin
January 15th, 2017, 06:14
it is possible, let me look into this one, no guarantee. But I will see what I can find.

ArtSerjGaming
January 16th, 2017, 13:17
how your finding about this topic? ) ;)

ArtSerjGaming
January 18th, 2017, 16:10
i found solved : https://ugx-mods.com/forum/index.php/topic,14583.0.html
You can download this archive which it archive has full source files! )

MelVin
January 18th, 2017, 23:03
awesome, thanks for sharing:)