![]() |
function onTouchThePlayer(){
When i was making a dart that shoots across the level, when ever you where running into the dart it would hurt you
(using hurt(); ) But when you stood still and the dart hit you it would keep going with nothing triggering in the script! So is there a way to trigger something when the NPC touches you, like being shot by a bullet?? |
No built-in way. Ways of projectiles hurting via playertouchesme is very, very outdated(Stefan used to have the Ice arrows do that in old Graal :P).
Either use projectiles(shoot) and use onActionprojectile(or the other varieties, and I recommend this method) or use a loop of the players and check if the player is in 'touching' the NPC by calculating its distance... or triggeraction. |
Quote:
function onWeaponfired(){ shoot(projectile); } function onActionProjectile(){ i have no idea; } |
Quote:
i.e. setshootparams("hurtfulprojectile", 3); Then have the following code in a weapon every player carries... PHP Code:
|
wtf ever happened to playertouchsme anyways. That was never made into a function like onPlayerTouchsMe and it makes me sad D:
|
Quote:
|
I wish projectiles could have scripts and have classes be joined to them. (WHY ARE THEY READ-ONLY SERVERSIDE?!)
I want to be able to make projectiles that can pass through players while still hitting them :( |
Ditto. For something with so much potential like projectiles, I wish there were more options for them.
Allowing them to go through walls while being 'classic' is one, or having them not go through walls while in the air and so on. I agree with joining classes to them... though I dunno if it's possible. |
Ya that would be awesome!
|
I've never ever used shoot() :P: I've always just made my own projectiles using putnpc2 and join() :P
Mostly since all my projectiles can have limited homing abilities and other effects. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
I Believe I Left The Projectile Hurt System Weapon In -System/Health or something like that on Graal Legacy...
|
| All times are GMT +2. The time now is 04:38 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.