Sic1ne opened a thread with a question
Quote: "in the game fear 2 you can push over a vending machine for cover, i was wondering if there is any scripts out there or if it is possible to walk up to an object and hit enter to push it over?"
and he kind of allready had the answer: A script where the player presses "Enter".
I apologize for not taking that question serious enough. In fact, once I started thinking about it (it took sic1ne several posts to make me use my brain), I realized , that this was doable - just as he allready suspected it would.
Everything works now and has been tested ingame with 1.18 beta 8.
Here is the script PushOverTable, which is nothing more than a
destroyandactivate script
EDIT: The original script had a flaw, that SethBlack fixed with the last state=2 line in the script. Please use the new one!
;Artificial Intelligence Script
;Header
desc = Disappear when player presses "enter" then activate another
;Triggers
:state=0:state=1
:state=1,pickobject=1,plrdistwithin=50:state=2
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=2:fpgcrawtext=Press <Enter> to push over the table.
:state=2,plrusingaction=1:plrsound=audiobank\materials\3woodS.wav,destroy,activateifused=1
:state=2,plrdistfurther=51,pickobject=0:state=1
;End of Script
(not sure if the displayed text is grammatically correct)
To pull it off, you actually need
2 entities with very specific settings. This picture explains it all (sorry for the size, but photobucket kind of scales everything to a standard size)
You can download the tiny demo here, to push the table over yourself - the download also includes the above pic in a larger version to print it out:
http://www.mediafire.com/?wmbdbggxpu97om9
And here is the youtube vid:
In case you find my grammar and spelling weird ---> native German speaker ^^