Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,578 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Gunscript for enemy ? #406214
08/15/12 11:50
08/15/12 11:50
Joined: Sep 2009
Posts: 18
Paderborn, Germany
R
ralf0507 Offline OP
Newbie
ralf0507  Offline OP
Newbie
R

Joined: Sep 2009
Posts: 18
Paderborn, Germany
I have a question.
I have an enemy and one gun.
I have assigned the t_shooter_enemy script to the NPC, and the mgun-script to the gun.
How do I assign the weapon to the NPC? Is that even possible?

Answers in german and english, please.

Thanks in advance..

Re: Gunscript for enemy ? [Re: ralf0507] #406218
08/15/12 12:03
08/15/12 12:03
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
I dont know the templates but i guess mgun-script is the player weapon script so u cant assign it to an enemy. Add a weapon to your enemy model in med, or add it by script to the bones fex
Code:
vec_for_bone

. Then modify your enemy-action(t_shooter_enemy) to fire at the player ( if it does not already fire at the player ). Have a look at
Code:
c_trace



greets

Last edited by rayp; 08/15/12 12:07.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Gunscript for enemy ? [Re: rayp] #406228
08/15/12 13:39
08/15/12 13:39
Joined: Sep 2009
Posts: 18
Paderborn, Germany
R
ralf0507 Offline OP
Newbie
ralf0507  Offline OP
Newbie
R

Joined: Sep 2009
Posts: 18
Paderborn, Germany
I will try it, Thanks


Moderated by  HeelX, rvL_eXile 

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