Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: artsergo on January 15, 2017, 09:35:12 am
Title: Help me with FX (SP)
Post by: artsergo on January 15, 2017, 09:35:12 am
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:
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. ::)
Title: Re: Help me with FX (SP)
Post by: Harry Bo21 on January 15, 2017, 12:42:28 pm
Thread on trigger
Title: Re: Help me with FX (SP)
Post by: artsergo on January 15, 2017, 12:48:47 pm
Harry Bo21, hi!
Thank! But how this trigger_multiple using with shake ground and FX in the radius?
Title: Re: Help me with FX (SP)
Post by: Harry Bo21 on January 15, 2017, 12:49:46 pm
That code will trigger whenever you touch a trigger multiple
Title: Re: Help me with FX (SP)
Post by: artsergo on January 15, 2017, 12:59:04 pm
how may looking this code if need that trigger launches two things:
- 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.
and if a player go out from trigger then shaking ground and FX little fall dust - both is switched off.
Title: Re: Help me with FX (SP)
Post by: Harry Bo21 on January 15, 2017, 01:00:11 pm
Add your code to what I posted?
And use
Playfx( fx, origin );
Title: Re: Help me with FX (SP)
Post by: artsergo on January 15, 2017, 01:05:19 pm
i understanding after this line:
write: but How can make with shake script? if his loading then not is - switched off.
I need then both such effects is - switched off if you go out from trigger
i such understanding this code need
But what can it looking ))
Title: Re: Help me with FX (SP)
Post by: artsergo on January 17, 2017, 06:30:14 pm
Maybe anybody know?
Title: Re: Help me with FX (SP)
Post by: BluntStuffy on January 17, 2017, 07:20:38 pm
Try this, i tried to write it easy to understand. Think it should work, not tested though ::)
-Use 1 trigger_multiple that covers the entire area where you want the effects to happen. -Use one script_struct ( NOT script_origin ) for the center of the earthquake -Use one or more script_struct's (!) for the locations of the FX
You can find the targetname KVP at the top of the script
The fx needs to be a one-shot ( not looping ) FX, or this code will not work propperly and the fx wont stop playing..
Put this in _zombiemode around line 60-70
Title: Re: Help me with FX (SP)
Post by: artsergo on January 18, 2017, 01:35:36 pm
Wow! BluntStuffy thanks! ::)
I should try this)
and if all ok, I write about how this working. :) Double Post Merge: January 18, 2017, 07:59:07 pm BluntStuffy hi! :) Thank you very very much!