Question by
noe-.- · Dec 03, 2015 at 02:55 PM ·
scripting problem
switch name.contains
I'm trying to have a script for a bullet access different scripts depending on the name of the enemy it hits. Now have I tried using a switch statement, but this doesn't work (I know switch statements don't like strings). Is there any other way of doing this without about 20 if statements?
Comment
Your answer
Follow this Question
Related Questions
Why isn't my player moving down? 0 Answers
HP, DMG, HUD scripts problem 0 Answers
How to get 2D blocks to break after a certain amount of hits 0 Answers
Debugging Collision script - Help required to understand behaviour 2 Answers
Need to get the difference between the rotation of a normal and an object 0 Answers