Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
modifying the car template script #297222
11/06/09 03:14
11/06/09 03:14
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Can someone please modify the car template to allow the car and wheels to only travel on the x and z axis? i am using the default script so i have no need to post the code.

Re: modifying the car template script [Re: xbox] #297223
11/06/09 03:32
11/06/09 03:32
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Upon initiation have the entity store it's Y position in a SKILL. After every c_move() call, simply set the entity's Y position to this stored value. The entity will thus move along the X and Z axis but not along the Y axis.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: modifying the car template script [Re: Redeemer] #297225
11/06/09 04:43
11/06/09 04:43
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
I'm, sorry but could you please show me an example of what you mean. I can't find any c_move calls at all.

Re: modifying the car template script [Re: xbox] #297292
11/06/09 15:25
11/06/09 15:25
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Scripts use functions like c_move to move entities around in your game. However, the template scripts you're using may have older names for the c_move instruction. Try looking for "ent_move" or just "move", instead. It's basically the same thing, just a different name.

BTW, remember to backup your template scripts before you make any changes to them.


Eats commas for breakfast.

Play Barony: Cursed Edition!

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1