Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scripting help
stormhound Offline
Junior Member

Posts: 12
Threads: 3
Joined: May 2011
Reputation: 0
#1
scripting help

Hi I made a choice to call myself noob till I get good with the forums scripting and how to make good maps. Anyway,I was wondering how do you make thing fall over and make books fall off bookshelves and stuff. I saw a script line saying float but I cant remember it off the top of my head, there is a page that shows you all of the script and what it does so if you could send me that link too that would be helpful.

by noob.Heart
_________________________________________________________
custom story in progress grunt of brennenburg.
(This post was last modified: 06-26-2011, 09:05 PM by stormhound.)
06-26-2011, 12:01 AM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#2
RE: scripting help

Well I can't help you on that cause I'm not familiar with floating objects..
But here's the Frictional Games Scripting Functions. Make sure to bookmark this page, now. Wink

http://wiki.frictionalgames.com/hpl2/amn..._functions

EDIT---
I was looking around a bit, I found this page:

void AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddPropImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
void AddBodyImpulse(string& asName, float afX, float afY, float afZ, string& asCoordSystem);

Pushes objects. Note that rather high values are needed when applying forces.

asName - the object to push
afX - direction along the X-axis
afY - direction along the Y-axis
afZ - direction along the Z-axis
asCoordSystem - determines which coordinate system is used, usually “world”

I found it under Props, in the table of contents. Big Grin


Ba-da bing, ba-da boom.
(This post was last modified: 06-26-2011, 12:23 AM by JenniferOrange.)
06-26-2011, 12:21 AM
Find
stormhound Offline
Junior Member

Posts: 12
Threads: 3
Joined: May 2011
Reputation: 0
#3
RE: scripting help

Thank you Jenniferorange I have seen some of your questions before thanks for the help. I shall help you when you need help as long as you help me.Big Grin
(This post was last modified: 06-26-2011, 12:15 PM by stormhound.)
06-26-2011, 12:13 PM
Find




Users browsing this thread: 1 Guest(s)