Help with NKill

Description: Internal scripting system of SMBX-38A Engine based on the simple VB-like language
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Cyberboy2000
Topic author, Passerby
Passerby
Cyberboy2000
Topic author, Passerby
Passerby
Reputation: 0
Posts: 1
Joined: 21 Mar 2017

Post #1by Cyberboy2000 » 22 Mar 2017, 0:05

I am trying to use the NKill function to make an object destroy itself but no matter what I do the NKill function does nothing.
I tried copying code from the script example, but even though I can't find any difference between his code and mine his version works and mine doesn't.
This is what it looks like right now:

Code: Select all

With NPC(sysval(param1))
  If .ivala >=10 Then
    Call NKill(sysval(param1),0,0,0,0,0,0,0)
  Else
    .ivala = .ivala + 1
  End If
End With

Please help :SOS:


Edit: Sorry for being so unproffesional, I usually try not to sound this whiny but I was really tired and a bit frustrated when I wrote it.

ELY_M M
Good citizen
Good citizen
ELY_M M
Good citizen
Good citizen
Reputation: 3
Posts: 20
Joined: 6 Jun 2016

Post #2by ELY_M » 18 Jul 2017, 4:02

I know it has been awhile but you need to open npc editor and set npc to run the script in behaviors section.

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 22
Reputation: 170
Posts: 693
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #3by Yoshi021 » 23 Jul 2017, 6:04

Try using .alive = 0
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:


Return to “TeaScript”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest