Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 11th Sep 2011 21:46
I am trying to go new ways with combat in my fantasy project and everythig works - except for the camshake.

Here is the script line:


The player looses health, the sound gets played...but no camshake

In case you find my grammar and spelling weird ---> native German speaker ^^
bond1
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 12th Sep 2011 01:37 Edited at: 12th Sep 2011 01:43
Your script only stays in state 25 for a split second before it goes on to state 5, too fast to ever notice the camshake. The camshake will stop as soon as you reach state 5. Also it looks like you have an extra colon in there.

Maybe try adding an entity timer in there somewhere to keep it in a particular state while the camshake occurs. Or you can use the "framewithin" or framebeyond" commands to have the shake occur over a certain amount of animation frames. Either way, you need to introduce a "time period" into the script to notice the camshake.

SPECS: Windows7 x64, Intel Core i7 920, Geforce GTX 580, 6GB RAM
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Sep 2011 02:26
At the "frameatend=95" and "plrdistwithin=80", that colon should be a comma.

Also, Bond is correct. You will need to insert a timer in there so the camshake command can run. I have a script for one of our games where the player is inside a rail car and using the camshake it simulates the player riding the car as the train travels down the rail line. Mind you, I have a couple of camshake lines in the script, but I did add an etimer in between each one.


Twitter: @NFoxMedia
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 12th Sep 2011 04:47
Thanks for the advice, but I don't think I can squeeze in a couple of seconds into my melee script.

But I'll try

In case you find my grammar and spelling weird ---> native German speaker ^^
bond1
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 12th Sep 2011 05:33 Edited at: 12th Sep 2011 05:36
You wouldn't necessarily need a couple seconds, just a few animation frames or milliseconds should do the job.

If you go the etimer route, this should work. State 44 is an intermediate state that just does a camshake for 500 milliseconds before resuming your script at state 5. You could adjust the timer to taste.



SPECS: Windows7 x64, Intel Core i7 920, Geforce GTX 580, 6GB RAM

Login to post a reply

Server time is: 2024-11-24 05:37:11
Your offset time is: 2024-11-24 05:37:11