Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (BrainSailor, Quad), 9,800 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to create a gun held by the player? #187779
03/10/08 07:56
03/10/08 07:56
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi, I'm currently converting my entire script from C-Script to Lite-C. On the weapon code I got stuck. Here I'm trying to create a bow which is held by the player.

Code:

ENTITY* bow_entity =
{
type = "bow.mdl";
layer = 5;
view = camera;
x = 50;
y = 8;
z = 68;
flags = VISIBLE;
}



The same code works fine in C-Script, my bow appears in front of me but in lite-C i don't see anything!
Anyone an idea?

Re: How to create a gun held by the player? [Re: PadMalcom] #187780
03/10/08 10:06
03/10/08 10:06
Joined: Mar 2008
Posts: 17
Kärnten, Austria
T
Tarandur Offline
Newbie
Tarandur  Offline
Newbie
T

Joined: Mar 2008
Posts: 17
Kärnten, Austria
you could youse

bow = en_create(...)

and then sth like´

bow.layer = 5;
bow.view = camera;
etc

and i recommend you to check if the bows "properties" are still aviable in
lite-c. Try it out, ive got no idea if this is going to work.

Re: How to create a gun held by the player? [Re: Tarandur] #187781
03/10/08 12:45
03/10/08 12:45
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
try "flags2 = VISIBLE" for a view-entity, maybe that helps...

Re: How to create a gun held by the player? [Re: Widi] #187782
03/10/08 13:17
03/10/08 13:17
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Thanks for your tips, I'll try it tonight and report tomorrow


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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