Gamestudio Links
Zorro Links
Newest Posts
Access string content through another string
by ChrstphFr
47 minutes 19 seconds ago
How to return a vector from a function
by jumpman
Today at 01:24
Vector Displacement, realtime Blendshapes
by jumpman
Yesterday at 23:46
Code Repository
by OptimusPrime
Yesterday at 13:25
Votes for future features
by OptimusPrime
Yesterday at 07:18
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14
08/13/18 22:44
Getting Maximum and Minimun Values from Array
by Tavasy
08/13/18 20:38
AUM Magazine
Latest Screens
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
Who's Online
11 registered (Ulenspegel, jyd, ChrstphFr, OptimusPrime, HamSelv, jumpman, AndrewAMD, wdlmaster, 3 invisible), 489 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
toto, FloMi, behr065, OptimusPrime, bailemad
18026 Registered Users
Topic Options
Rate This Topic
#471896 - 03/24/18 12:24 c-script to litec (in A8)
DAVIDMORETON Offline
Member

Registered: 01/11/05
Posts: 282
Loc: devon UK
Just in case you use c-script and are about to try A8 (Litec), [as I had problems with it,] this might help:-
In c-script you put a biped into the game and give it an action (walking etc.) from a list.
I tried this in A8, but there were no actions.
If you want to put a biped into a basic game, I have found this is the easiest way to do it.:-

Build a hollow box, (texture it if you like), give it a name in save, add a model player, go to Map Properties and click on New script, select Template project. (close box)
Open project manager, click Add, click Script, (make sure ‘camera’ is in the box), click the drop down arrow and select Start up and then add Player parameters.
Close the box, highlight player and add 'behavior' build and save, and then run. You can alter the player’s properties by going back to Project manager, select customize, and then highlight player and click ‘customize’ in the pale blue bar – don’t forget to save your alterations !!
Hope this helps someone!
David.


Edited by DAVIDMORETON (03/24/18 12:40)

Top
#471912 - 03/25/18 15:54 Re: c-script to litec (in A8) [Re: DAVIDMORETON]
3run Offline
Senior Expert

Registered: 05/05/09
Posts: 5063
Loc: Caucasus
Hey!

In A8 with Lite-C you can also assign actions to entities. There are several steps that needs to be done in order to get it working correctly (c-script was more forgiving).

-include 'main' file in Map Properties in WED (to keep things as simple as possible, it should be in same folder with WMB file)
-action's name should end up with (), in older c-script snippets I used to find out that actions where written wrong, examples:
Code:
ACTION name(){ }

or
Code:
action name { }


Both of them are wrong in lite-c! It should be like this:
Code:
action name(){ }


Here is how it works for me:
Quote:
Map properties:

Actions in Behaviour:


I hope it helps! Greets!
_________________________
Looking for free stuff?? Take a look here: http://badcom.at.ua

Top


Moderator:  HeelX, TSG_Torsten 

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

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