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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions from beginner
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#11
RE: Questions from beginner

Just the 1 void inside the { }.

Void is used to tell the script, this is a function, which holds commands that are linked up to the callback. The curly brackets are the start and stop points in the function, where you put your commands.

06-14-2011, 01:08 PM
Find
Finska Offline
Member

Posts: 102
Threads: 6
Joined: Jun 2011
Reputation: 0
#12
RE: Questions from beginner

Didn't help still, as I said in my previous message Big Grin

Creeps, creeps everywhere...
06-14-2011, 01:09 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#13
RE: Questions from beginner

(06-14-2011, 01:05 PM)Finska Wrote: Crowbar is activated and crowbar_joint isn't. Door is named door_1... Doesn't work?

What's not working? The joint_crowbar not showing up?

06-14-2011, 01:09 PM
Find
Finska Offline
Member

Posts: 102
Threads: 6
Joined: Jun 2011
Reputation: 0
#14
RE: Questions from beginner

I don't know. Just saying "Can not use item this way" And I have that script just like it is.

Creeps, creeps everywhere...
06-14-2011, 01:15 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#15
RE: Questions from beginner

Strange, would you be willing to put your map and script up for download so I can see everything first hand rather than relaying messages?

06-14-2011, 01:18 PM
Find
Finska Offline
Member

Posts: 102
Threads: 6
Joined: Jun 2011
Reputation: 0
#16
RE: Questions from beginner

http://www.mediafire.com/?bzl9gk90cwr22zy here

Creeps, creeps everywhere...
06-14-2011, 01:23 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#17
RE: Questions from beginner

Okay, I see where we got our signals mixed!

First, the .hps file needs to be in the folder with the maps. So I moved your script to the maps folder and renamed it the map's name "TestMap.hps"

I went ahead a changed what needed to be changed in the map. Moved the area so the crowbar hits it and added the crowbar_joint, also renamed the area.

But, there, I hope this serves as a better tutorial than my writing does!

http://www.mediafire.com/?o1lwv17j6u0m0kd


06-14-2011, 01:43 PM
Find
Finska Offline
Member

Posts: 102
Threads: 6
Joined: Jun 2011
Reputation: 0
#18
RE: Questions from beginner

Problem solved! I put the scriptfile to map folder
(06-14-2011, 01:43 PM)Russ Money Wrote: Okay, I see where we got our signals mixed!

First, the .hps file needs to be in the folder with the maps. So I moved your script to the maps folder and renamed it the map's name "TestMap.hps"

I went ahead a changed what needed to be changed in the map. Moved the area so the crowbar hits it and added the crowbar_joint, also renamed the area.

But, there, I hope this serves as a better tutorial than my writing does!

http://www.mediafire.com/?o1lwv17j6u0m0kd
One more question. How is it possible to make the door to "burst" open and crowbar goes broken on the floor.


Creeps, creeps everywhere...
(This post was last modified: 06-14-2011, 02:06 PM by Finska.)
06-14-2011, 01:43 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#19
RE: Questions from beginner

(06-14-2011, 01:43 PM)Finska Wrote: One more question. How is it possible to make the door to "burst" open and crowbar goes broken on the floor.

anna msn tai jtn vastaavaa (tai pm äillä saa kans) ja voin autella tällasis simppeleis jutuissa... Voin ehkä osaa selittää yksinkertasemmin asiat jne
(just offering help etc.)
(This post was last modified: 06-14-2011, 02:13 PM by Khyrpa.)
06-14-2011, 02:12 PM
Find
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#20
RE: Questions from beginner

(06-14-2011, 01:43 PM)Finska Wrote: One more question. How is it possible to make the door to "burst" open and crowbar goes broken on the floor.

Use the crowbar_dyn and make it activate when the crowbar collides with the area. It should fall for the floor. Then for the particles:

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

Look through the different particles and make them appear at a new area.

06-14-2011, 02:17 PM
Find




Users browsing this thread: 2 Guest(s)