[Solved] Pendulum

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

coolXD
Topic author, Honourable citizen
Honourable citizen
coolXD
Topic author, Honourable citizen
Honourable citizen
Reputation: 32
Posts: 43
Joined: 13 Jan 2020

Post #1by coolXD » 26 May 2021, 16:50

I need a Pendulum script that swinging, but it will nsmbu pendulum. I appreciate any help!
https://www.smwcentral.net/?p=section&a=details&id=16191
Last edited by coolXD on 27 Jul 2021, 15:43, edited 1 time in total.

coolXD
Topic author, Honourable citizen
Honourable citizen
coolXD
Topic author, Honourable citizen
Honourable citizen
Reputation: 32
Posts: 43
Joined: 13 Jan 2020

Post #2by coolXD » 27 Jul 2021, 15:43

Script is NESTED ERNEST has been Solved

Code: Select all

with npc(sysval(param1))

if .advset=0 then
.langle=270
.advset=1
end if

.ivalb+=8*(1-2*.ivalc)
   if .ivalb<-200 then .ivalb=-200
   if .ivalb>200 then .ivalb=200
      
   if .langle<270-60 or .langle>270+60 then
      if .langle<>270 then
      .ivalc=-(.langle>270)
      end if
   end if
   
   .langle+=.ivalb/100
   
   .x= 110*cos(.langle*0.01745)+.prx
   .y=-110*sin(.langle*0.01745)+.pry
end with

'Created by NESTED ERNEST


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest