Jump to content

Is this possible ?


Razer

Recommended Posts

Hi T3D fellows :D


I am making a game about magic and mages clans, the game will use Torque Script.

There is many tutorials, but i didn't found one that was dealing with player inputs to help me.

The mage is from a model from a store and is able to levitate and walk above the air, how can i do that ?

Something i don't understand is how to deal with mages projectiles hitting another mage, how do i know when they are hit ?

Edited by Razer
Link to comment
Share on other sites

Jetpack should work fine, is there some examples ?

The game will also have different monster types, some will be able to taunt, others will be able to hide and seek the player mage, some others will be able to throw some poison trap on the floor.

How it is done with scripting ? Must i use T3D functionnalities like the jetpack, or can it be made from scratch ?

Link to comment
Share on other sites

It is in the code, you have to search for it.

Here is an example of the player datablock entries needed:

https://github.com/Duion/Uebergame/blob/master/scripts/server/player.cs#L784-L792

Also look above for the particles needed.

Then you need a function to activate it:

https://github.com/Duion/Uebergame/blob/master/scripts/client/default.bind.cs#L586-L589

And then bind it to a key:

https://github.com/Duion/Uebergame/blob/master/scripts/client/default.bind.cs#L1169

Not guaranteed to work, just an example, I commented it out since I have no use for it in my game yet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...