Ok heres the thing... i just begining a project game that is basicly you running around a world being able to shoot things with various weapons, pick up items, blah blah..
i wanted to make a function called "Is_Hit()" that would go something like:
Now I want to use it in a function like:
Now what do i put in the ???? area above to pass the courent type to the function? Also it this a good start to A pickups function?
Thanks all.
Ed
i wanted to make a function called "Is_Hit()" that would go something like:
Function Is_Hit(entity) If EntityDistance (player1,entity) <= 1 Then Return True Else Return False EndIf End Function
Now I want to use it in a function like:
Function UpdateItems() For item.Items = Each Items If Is_Hit(????) Then ityp=item\typ Select ityp Case 0 ;do stuff if its a collectable for points Case 1 ;do stuff if its a powerup Case 2 ;do stuff if its a weapon Case ;3,4,5...blah End Select EndIf ;do other stuff like rotating objects and distance fading Next End Function
Now what do i put in the ???? area above to pass the courent type to the function? Also it this a good start to A pickups function?
Thanks all.
Ed